Unit 1 Assignment 4 Buffer Overflow Attack

Improved Essays
Assignment #4: Buffer Overflow Attack

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 had trouble getting started because the initial command just asked us for 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 just tried to change directories and list whatever it would give us but that seemed too basic nor did it work. So, we were stuck for a while trying to figure out how to read whatever information we could get to obtain
…show more content…
So, we used the hexadecimal converter and ended up with an integer of 271. It was a three digit number so upon entering it as the password, we had gained access to level 2 which was 3ywr07ZFw5IsdKzU.
(image 1)

The first thing we noticed for level 2 was that when we attempted to run level02 using the command, ./level02, we would get a message that says, “source code is available in level02.c” (image 2). We then decided to run the level02.c file to see how far we could get, but we ended up getting an error message saying that our permission was denied (image 3).

(image 2)

(image 3)

Fortunately, we were able to view the source code by using the ‘cat’ command (image 4). We then noticed that after glancing at the catch statement. It was set to print the words “WIN!”, and this immediately caught our attention. After looking at it even more we noticed that it also places us into the shell that should have new permissions (i.e. system(“/bin/sh”) (image
…show more content…
We ran into problems when simply putting zero into one of the parameters and trying 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. Eventually, we were able to find a way to set off the SIGFPE in spite of this issue. We 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). 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

Related Documents

  • Improved Essays

    Nt1310 Unit 5 Lab Report

    • 1339 Words
    • 6 Pages

    The "SIGEX Rx_x.exe" Main VI was launched. 11. The number corresponding to the NI ELVIS was entered. 12.…

    • 1339 Words
    • 6 Pages
    Improved Essays
  • Improved Essays

    Sara Ann Thornley 2/3/17 Macronutrients Dr. Huggins Assignment #1 1. A reducing sugar is a sugar that is capable of breaking down certain substances. They have a free ketone or aldehyde group which allows them to become hemiacetale and hemiketals (Gropper, 65).…

    • 528 Words
    • 3 Pages
    Improved Essays
  • Improved Essays

    Pt1420 Unit 3 Assignment

    • 533 Words
    • 3 Pages

    In the original you lose the game when all 16 spaces are filled and the user cannot merge any tiles to generate new number tiles. To code this I will assign a fill or no fill bool variable to each of the 16 tiles. Then I will assign a number value based on the number tile that is in the tile space. Then when all tiles cannot merge based on the number value assign to each tile space in the board the user will lose the game.…

    • 533 Words
    • 3 Pages
    Improved Essays
  • Improved Essays

    IGN (Minecraft Name): Dropt Previous IGN's (If changed in name changes): Tipt Age (Must be 14 or over): 14 Do you have TeamSpeak and a microphone? (Used for communication between the team): Yes, I have both Timezone? (EU, US, AU):…

    • 1282 Words
    • 6 Pages
    Improved Essays
  • Improved Essays

    Simply describe what is a DML statement is when you executed? DML statements are executed when we adding new rows to the table. It executed when modifying the rows of a table and when removing rows from the table. When inserting rows with Null values, what methods can be used? The methods used for inserting rows with null values are, • Implicit method • Explicit method…

    • 467 Words
    • 2 Pages
    Improved Essays
  • Decent Essays

    I agree with Allington. In order to accelerate the reading rate of the students it is going to take every available staff member in the school/district to tackle this problem. The school district is growing immensely therefore, we are serving more students during the intervention time. For example, last year I had small groups of 3 and 6, however this year I have a group of eight students in one of the intensive reading groups. The data indicates the students are not accelerating at the expected rate…

    • 192 Words
    • 1 Pages
    Decent Essays
  • Great Essays

    Nt1330 Unit 3 Quiz

    • 1731 Words
    • 7 Pages

    Please note that, we only discuss couple of options for each command to get the familiarity, and get you going with your learning. At the end of each command, there is a link to the command reference, where we discuss the most relevant and practical usages of the commands. It not practical to discuss all the options available for each command we discuss. We recommend you to refer to the man page of the command on your Linux system. Listing Files…

    • 1731 Words
    • 7 Pages
    Great Essays
  • Improved Essays

    Next, select “Change/Set Password” button. In the next dialog box you will be able to set up you password. Make sure you remember you password. You will need it to log in to your user account and to make any other changes to your system. Now next very important step is to secure your hard drive.…

    • 867 Words
    • 4 Pages
    Improved Essays
  • Decent Essays

    Part A Que.1 1.1 A term Problem describe as a situation related as unwelcome and needing to be overcome. if we describe briefly as that is something inconvenience with deal, source of difficulty, trouble in understanding something. (itseducation.asia,2015)…

    • 525 Words
    • 3 Pages
    Decent Essays
  • Improved Essays

    They will be prompted to answer one of their security questions which they have set earlier. When the secret questions are answered correctly, a randomly generated password will be displayed on-screen. They may either login immediately with their newly generated password or change the new password to one of their choosing.…

    • 410 Words
    • 2 Pages
    Improved Essays
  • Great Essays

    Nt1310 Unit 1 Assignment 1

    • 1793 Words
    • 8 Pages

    Guided Reading (8:00) (Group 1 & 2) [Introduction] At the beginning of the lesson, only the teacher has a copy of the book. 1. Remind students of behavior expectations: Listen while others are talking Wait your turn to speak Keep your hands and feet to yourselves…

    • 1793 Words
    • 8 Pages
    Great Essays
  • Improved Essays

    Nt1330 Unit 1 Assignment

    • 698 Words
    • 3 Pages

    Q1 The components of the health system in the Kingdom of the most important 1. Department of Health Services 2-planning and evaluation of health services 3. training and education for workers in the health services Integrated Health Program in the Kingdom of two parts there are more than 3,500 electronic health office using the well-being of the patient solitary record by 2020, knowing that the strong-willed and the government are leading the activities of health it Q2 1- can access the health information from any preferred channel like web or telephone or sms 2-receive faster diagnosis when medical care needed add their own information such as their health status and vital signs3- 4-view their own health information at any time and be able…

    • 698 Words
    • 3 Pages
    Improved Essays
  • Improved Essays

    enlightenment...during the 2017-2018 school year? I will use these word, this school year (claim) describing things I have to do to be successful, R1 You need a helpful community to succeed, R2 You need to be empowered and be confident in what you're doing, R3 You need to persevere in order to succeed, R4 You need to do your best to excel in school, R5 You should be able to be enlightened.…

    • 692 Words
    • 3 Pages
    Improved Essays
  • Improved Essays

    Learning has the power to transform all of us. We have the opportunity to shape and mold our minds into learning whatever we desire. It wasn’t until my first semester of college that I learned what the six stages of learning are and how our emotions affect our learning. Emotion is the on and off switch for learning. It’s important for us to understand this process and how we learn biologically.…

    • 1790 Words
    • 7 Pages
    Improved Essays
  • Improved Essays

    On Monday, October 5th we discussed how we would going about not using your phone to text for 24 hours, so I decided that I would not text from Monday at 11 o’clock until the same time on Tuesday. My immediate thought process was that this assignment was going to be rather challenging because sometimes you just need to text people to remain in contact and coordinate your daily routine. But as I began to think more about it, I realized how easy this task was going to be. All I had to do was not send a text for 24 hours, I could still read and receive text messages and I still had various social media platforms to keep myself entertained.…

    • 1502 Words
    • 6 Pages
    Improved Essays