gpt4 book ai didi

linux - 如何在 Ubuntu Linux 中执行 CMU 二进制炸弹?

转载 作者:IT王子 更新时间:2023-10-29 00:57:46 33 4
gpt4 key购买 nike

我正在尝试将 CMU 的二进制炸弹作为一个独立项目来学习一些 x86 汇编和逆向工程。 (它不是与类(class)相关的自动评分版本。)

我从 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 Linux/IA32 binary bomb 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
  1. 它确实提取了一个名为 bomb 的文件(没有文件扩展名),但我认为它也会给我 bomb.c,这也会有帮助供引用。

  2. 我无法让“炸弹”运行。这是我尝试过的:

    bomb
    bomb: command not found

    ./bomb
    bash: ./bomb: No such file or directory
  3. 虽然我意识到解决它需要在 gdb 中逐步完成它,但我什至不能在 BASH 中运行它并用错误的答案炸毁自己!一点帮助就太好了。

最佳答案

正如其他答案所暗示的,这似乎是一个 CPU 架构兼容性问题。通过安装位于 AskUbuntu.com How to run 32-bit programs on a 64-bit system [duplicate] 的软件包,我能够在 64 位 Ubuntu 15.04 上解决此问题。

具体而言,以下命令有所帮助。

sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0

关于linux - 如何在 Ubuntu Linux 中执行 CMU 二进制炸弹?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26436519/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com