Tutorial #4: Assembly
First of all, make sure that the GNU tools has been installed on your machine, including gcc, gdb, and objdump. If them have not been installed, you could use apt-get command with the install option and package name build-essential and gdb to install them.
$ apt-get install build-essential
...
$ apt-get install gdb
To learn more about them, you can read the manual by typing man command, like man objdump.
We provide the tut1 to help you to be familiar with the operations, which you need to use in the following labs.
Now you need to exit the root user and change to your top-level svn directory which should include your lab1, tut-tools, and tut-debug (If you have not checkout your svn directory, please do it according to the SVN introduction in Tutorial-2). You could use the svn command with the update option under the svn top-level directory to get tut-asm folder.
$ svn update
A tut-asm
A tut-asm/bomb
Updated to revision 317.
Change your current directory to tut-asm directory, and use the ls to show the content within it. The output should include only one file bomb.
$ cd tut-asm
$ ls
bomb
The task is to defuse the binary bomb. The bomb is very similar to the example in tutorial today. You need to find the right password using objdump, gdb and anything else.
$ ./bomb
input password: (enter your password)
survive!
$
After you find the right password, you need to create a new file named "password.txt" to save your password. The password file should be submitted to svn server. You should add the new file to svn server using the svn command with the add option and the file name, and commit it like previous operations.
$ vim password.txt
...
(add your password)
$ svn add password.txt
A password.txt
$ svn ci password.txt --message="find the password here."
Adding password.txt
Transmitting file data ...
Committed revision 319.
Congratulations!
|
Go to Top // ICS Home Page |