我从http://csapp.cs.cmu.edu/public/labs.html下载了bomb.tar.
来自CMU的实验室描述:
A “binary bomb” is a program provided to students as an object code
file. When run,it prompts the user to type in 6 different strings. If
any of these is incorrect,the bomb “explodes,” printing an error
message and logging the event on a grading server. Students must
“defuse” their own unique bomb by disassembling and reverse
engineering the program to determine what the 6 strings should be. The
lab teaches students to understand assembly language,and also forces
them to learn how to use a debugger. It’s also great fun. A legendary
lab among the CMU undergrads.Here’s a 07001 that you can try out for yourself. The
feature that notifies the grading server has been disabled,so feel
free to explode this bomb with impunity.
将其保存到适当的文件夹后,我在终端中运行了此命令:
tar xvf bomb.tar
>它确实提取了一个名为炸弹的文件(没有文件扩展名),但我认为它也会给我炸弹,这也有助于参考.
>我无法运行“炸弹”.这是我尝试过的:
bomb bomb: command not found ./bomb bash: ./bomb: No such file or directory
>虽然我意识到解决它需要在gdb中单步执行它,但我甚至无法在BASH中运行它并将自己弄错了答案!一点点帮助太棒了.
具体来说,以下命令有帮助.
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。