you will be defusing four binary bombs. The idea is simple: each bomb is an executable program that prompts the user for five inputs via the stdin console, one at a time, in order to defuse the bomb. If you type in the right values, you successfully defuse the bomb. If not, the bomb explodes! (Don't worry, it just prints that the bomb explodes; no real harm is done to you or your computer)
Getting the Required Files
The four bombs are unique for every student and are located in the following directory:
/p/course/cs354-skrentny/public/students/<your-cs-login-ID>/p5/
Replace <your-cs-login-ID> with your actual cs login and copy the contents of the above directory into your working directory. There should be 4 executable files named b1, b2, b3, and b4.
Please copy your executable bombs to your own private directory, and work towards finding your solutions in your own directory. That way, you will have the original executables in your student directory if you accidentally overwrite an executable.
Defusing the Bombs
The challenge is to figure out the correct set of 5 inputs expected by each of the four bombs. You can run each bomb interactively, and type in your guesses, one at a time. This will be useful in defusing each bomb with a debugger, as described in the next section. Take a look at the sample run below:
[skrentny@jimbo] (55)$ ls
b1* b2* b3* b4*
[skrentny@jimbo] (56)$ ./b1
input 1 (of 5)? 951905
input 2 (of 5)? 1234
BOMB EXPLODED
[skrentny@jimbo] (57)$ ./b1
input 1 (of 5)? 951905
input 2 (of 5)? 994563
input 3 (of 5)? 493693
input 4 (of 5)? 828695
input 5 (of 5)? 278566
success!
[skrentny@jimbo] (58)$
The proposal is to create a private encrypted file containing bomb diffusing secret numbers and store them somewhere in the student files ( assuming home folder is readable and writable for the owner himself) this is important. This is the core of the application. I will create five or more source codes each one contains different key and value for secret private key as well as the private folder that holds the key.
But before that I did not understand the idea of the bomb. You did not mention the bomb timer which is a crucial part of the bomb itself. I will appreciate if you give more information about this