32linux无法运行bomb,如何在Ubuntu Linux中执行CMU二进制炸弹?

我正在尝试将CMU的二元炸弹作为一个独立项目来学习一些x86组装和逆向工程. (这不是与班级相关的自动评分版本.)

来自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中运行它并将自己弄错了答案!一点点帮助太棒了.

当你在终端运行 `../configure` 命令时,如果遇到错误信息 "bash: ../configure: No such file or directory",这通常意味着当前目录下没有名为 `configure` 的文件或脚本。 以下是一些可能的原因和解决方法: 1. **路径问题**: - 确保你在正确的目录执行命令。你可以使用 `ls` 命令查看当前目录文件列表,确认是否存在 `configure` 文件。 - 如果 `configure` 文件位于上一级目录,确保你使用了相对路径 `../configure`。 2. **文件缺失**: - 某些项目需要先生成 `configure` 文件。通常可以通过运行 `autoconf` 或类似的工具来生成这些文件。例如,有些项目会包含一个 `bootstrap` 脚本,可以运行它来生成所需的配置文件。 ```sh ./bootstrap ``` 3. **权限问题**: - 确保你有权限执行 `configure` 文件。可以使用 `chmod +x configure` 命令赋予执行权限。 4. **项目文档**: - 查阅项目的文档或README文件,了解如何正确配置和构建项目。不同的项目可能有特定的步骤和要求。 5. **环境变量**: - 确保你的环境变量设置正确,特别是 `PATH` 变量,它应该包含必要的工具和脚本的路径。 示例操作流程: ```sh # 查看当前目录内容 ls # 检查是否有 configure 文件 ls -l configure # 如果没有 configure 文件,尝试生成它(假设有 autogen.sh 脚本) ./autogen.sh # 再次运行 configure 命令 ../configure ``` 通过以上步骤,你应该能够找到并解决 "No such file or directory" 的问题。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值