PDA

View Full Version : Looking at binary files / hex editors



Julolidine
December 15th, 2006, 10:43 AM
So I have a binary file which is pretty much a header followed by a bunch of data. The problem is that I don't know how long the header is so I can strip the data from it. I know I need a hex editor, but what should I be looking for?

Edit: I guess that wasn't very clear. What can I pay attention to that differentiates the header from the rest of the file?

Also, out of the billion hex editors available, is there one that anyone recommends in particular?

pmasiar
December 15th, 2006, 04:02 PM
midnight commander is your trusted swiss sysadmin knife :-) Has hex editor too, of course. And many more goodies. mc to the rescue! :-)

chenxing
November 16th, 2007, 01:54 PM
I also want to know if there is a better binary file editor in linux. It seems that hexedit is not powerful enough for me.

LaRoza
November 16th, 2007, 06:19 PM
I use http://mh-nexus.de/hxd/, it is a Windows program, but runs in Wine, although some features won't work.

NathanB
November 17th, 2007, 01:59 AM
So I have a binary file which is pretty much a header followed by a bunch of data. The problem is that I don't know how long the header is so I can strip the data from it. I know I need a hex editor, but what should I be looking for?

First, identify the 'type' of binary file that you have. Second, go here...
http://www.wotsit.org/
...to discover the format of that file -- then you will know exactly what to look for.


Edit: I guess that wasn't very clear. What can I pay attention to that differentiates the header from the rest of the file?

This will, obviously, depend on the 'type' of file that it is.