Dave
Dave

Reputation: 161

Program exists with file not found even though the file exists

I am trying to solve the binary bomb given in this course. You can download the bomb itself here When I try to start the bomb (in the terminal or in gdb) it exists mith code 127 respectively file not found. But since I can set permissions on the file, copy it ... I'm pretty sure that it exists.

Well even if I open the binary in gdb and set breakpoints to main, _init and _start it still exits before the breakpoints get hit.

So what is the reason for this and how can I solve this problem since I really want to defuse this bomb. I also don't think that this is part of the excercise, because I found solutions for this bomb and read the first step and there nothing is said about this problem.

PS: I know that this question has been asked before (see here), but since the author doesn't reply and the question isn't solved I decided to ask again.

Upvotes: 1

Views: 2021

Answers (1)

Employed Russian
Employed Russian

Reputation: 213375

The bomb executable is dynamically linked, and requires /lib/ld-linux.so.2 in order to run.

That file probably doesn't exist on your system (which must be running Linux/x86_64).

You may need to apt-get install libc6-i386, or something similar.

Upvotes: 3

Related Questions