0

When I run objdump -d <program name> on a linux server (at University) I get the following:

kmwe236@kmwe236:~/Downloads/buflab-handout$ objdump -d bufbomb
objdump: bufbomb: File truncated

What's going on here?

Kendall Weihe
  • 193
  • 5
  • 18
  • How was `bufbomb` created? – user3629249 Oct 12 '15 at 21:07
  • Likely your file doesn't conform to the known object file specifications known by your version of objdump. Is it possible the file in question is a raw binary? If so you could use ndisasm if available to dump the binary (if you needed a disassembly) – Michael Petch Oct 12 '15 at 21:17

1 Answers1

2

I'm running ubuntu linux 14.04.

I entered, on the command line,

objdump -d untitled    

where 'untitled' is an executable file

It ran successfully with out any 'file truncated' message.

I entered, on the command line,

objdump -d untitled.o

where 'untitled.o' is an object file

It ran successfully with out any 'file truncated' message.

Therefore, I strongly suspect the 'bufbomb' file is not a valid executable or object file.

user3629249
  • 16,402
  • 1
  • 16
  • 17
  • hmm, hard to disagree with that... I'm able to disassemble locally using `gobjdump` as a part of the `binutils` package. But on my linux server I still can't get it to work. Weird. – Kendall Weihe Oct 13 '15 at 11:48