You are not logged in.
Hi!
I've got a binary which I can't execute...
All it does is segfaulting. When I try gdb it gives me
BFD: /tmp/binary: invalid string offset 48 >= 0 for section `.shstrtab'
BFD: /tmp/binary: invalid string offset 2 >= 0 for section `'
BFD: /tmp/binary: invalid string offset 48 >= 0 for section `.shstrtab'
BFD: /tmp/binary: invalid string offset 2 >= 0 for section `'
BFD: /tmp/binary: invalid string offset 48 >= 0 for section `.shstrtab'
BFD: /tmp/binary: invalid string offset 2 >= 0 for section `'
BFD: /tmp/binary: no group info for section
<stripped....>
BFD: /tmp/binary: sh_link [1] in section `' is incorrect
"/tmp/binary": not in executable format: File format not recognized
Alright, so I gave it a try with "file"
/tmp/binary: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped
(ldd says it's statically linked, which would make more sense..)
readelf recognizes the binary as an ELF32 too... objdump says "File format not recognized"...
I can't understand what's going on, anyone got a hint?
Edit:
Might be interesting to know: The binary was compiled on another computer, and I don't have the source
Last edited by diddi (2009-01-18 18:21:16)
Offline
What did you try to execute?
Is it a software you built with makepkg?
@+
Shaika-Dzari
http://www.4nakama.net
Offline
all I know is that it's a binary for linux/x86.. don't know what it does or anything... really : )
It's a wargame binary (however, I do know that it should be possible to debug and even execute w/o seg.fault), and I'm supposed to try and find out what it does
Last edited by diddi (2009-01-18 21:22:41)
Offline
Know any assembly? You could try a disassembler and trace through that code til you get some ideas, and maybe patch the binary to fix what looks to me like (may be wrong here, it's been a while since I've done anything like this) a corrupted string table?
Might even look at the strings in a hex dump and see if anything looks funny. I'd probably do that first before I went to all the work of wading through the assembly dump.
: () { : | :& } ;:
Offline
all I know is that it's a binary for linux/x86.. don't know what it does or anything... really : )
It's a wargame binary (however, I do know that it should be possible to debug and even execute w/o seg.fault), and I'm supposed to try and find out what it does
Hum,
You try to execute a binary on your system and you don't know what it is and where it's from...
This is not really safe.
Maybe you should ask more details to whom gives you this binary.
@+
Shaika-Dzari
http://www.4nakama.net
Offline
well, i kinda know the author of it so
It's actually a company (run by a guy I know),who have made this binary as a wargame... the deal is to find a bug and then exploit it.
So i'm not really afraid of running it.
I have no hope to actually solve it, just checking out how far I would make it : )
Disassemble it doesn't work, as every program I try all says that the file format is not recognized...
Another friend of mine actually got this binary to execute, and has spotted the bugs... but for some reason it doesn't work for me : O
(and I can't reach him atm)
Offline