Nt1330 Unit 3 Assignment 1 Level 1

1502 Words7 Pages

Level 1:
For level 1, we encountered some difficulty getting started, because there weren’t any instructions to guide us (image 1). For example, we attempted to use the command, ./level01, as described within the instructions, but it then asked us to input a password. Initially, we experienced trouble getting started because the initial command simply asked us to enter a three-digit password.
We attempted to think of different commands to use in order to manipulate the directory to give out a password. At first, we attempted to change the directories and list whatever it would give us, but that appeared too basic, nor did it work. Eventually, we were stuck for a while, trying to figure out how to read whatever information we could get to obtain the password. We decided to look online for more guidance, and, according to our findings, we concluded that we needed to read the assembly for the level …show more content…

Unfortunately, we ran into some issues when simply putting zero into one of the parameters in the attempt to get the catch statement to activate that way. When we looked at the code again, we were able to see that the initial if statement in ‘main’ was actually set to return a value of ‘1’ if someone tried to put in a value of ‘0’. We then tried inputting negative integers, but that did not work either. In spite of this issue, we were able to find a way to set off the SIGFPE. We subsequently looked up the arithmetic exception for SIGFPE and we found that there were two ways to set it off. The first way would be to divide by zero. The second would be to cause overflow, and this happened when we entered any negative integer, or even the smallest possible integer (-2147483648). Thus, by running the level02.c program with these parameters, we were able to gain access to level 3, which had “OlhCmdZKbuzqngfz” as its password (image

More about Nt1330 Unit 3 Assignment 1 Level 1

Open Document