.


CSC 373 Computer Systems I Karen Heart, Instructor Lab Exercise bomblab · Purpose · bomblab tests your ability to comprehend assembly instructions in an executable file and accurately predict their output. · Specifically, you will be provided with an executable object file and the C source code for the basic structure of the program. · Your task will be to examine the assembly instructions and determine the exact nature of the input required in order for each function to work properly. · The lab is referred to as "bomblab" because each function is considered to be a bomb that you must defuse. If you provide the correct input, the bomb is defused and the program outputs a congratulatory message. Conversely, if you enter incorrect input, the bomb explodes and the program terminates abruptly. · There are six functions, or bombs, in the program that you must defuse. Each one is progressively more difficult. · Your goal is to determine the strings and/or numbers that you must enter as input for each function. If a function is expecting several arguments, you may enter them on the same line, separated by space. · You may use the debugger, gdb, objdump, and any other tools that you wish, to disassemble the executable file and determine the exact nature of the input that each function demands. · Getting the Files · The files you need for this lab are included within an archive file named bomblab-handout-.tar; it is posted on D2L. · The archive is available for the Ubuntu platform and the Oracle Linux platform; the latter is compatible with the cdmlinux.cdm.depaul.edu server. · You can unpack the archive by using the tar command as follows: $> tar xvf bomblab-handout-.tar · Two files will be extracted to the directory: 0. bomb -- a binary executable in ELF format, which is the native executable format for Linux. This file was compiled and linked on the platform associated with archive file and can be executed on any compatible platform. 1. bomb.c -- the original source code for the main function in bomblab. 2. solution.txt -- an ASCII text file where you save your inputs. · Evaluation · As you determine the correct inputs for each function, you must enter them into the supplied text file, "solution.txt". NOTE: The format of the solution.txt is plain ASCII text; do NOT change the format!!! · You can run the program with the solution file as the sole command line argument, as follows: · $> ./bomb solution.txt The bomb program will read "solution.txt" one line at a time and use that input for the next function. · Note: If you receive the error, "Permission denied," when you try to execute the bomb program, then you must give the file permission to execute, as follows: · $> chmod u+x bomb · Submission Upload ONLY your solution text file to your Submission folder on D2L.
Answered 1 days AfterJun 01, 2022

Answer To: .

Chirag answered on Jun 03 2022
76 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here