Ultraedit like for binary file decoding
I'm looking for a tool to automate the analysis of a binary file. Like ultraedit
This binary file is an excerpt of a network protocol. I have the definition of headers and data, bit by bit. I would like to write a mapping like Quote:
I know wireshark can do this but its a bit huge for what I want to do. As usual, only GPL or BSD license software ;) |
tcpdump is an alternative which knows how to parse network traffic.
|
Its my own protocol. Will tcpdump understand it?
|
Probably not then. I don't know maybe it has some mechanism for this.
If your protocol was happily byte-aligning it's data I'd hack up a perl script with pack and unpack to pretty-print the data, but since you're using compressed, non-byte aligned data, it's probably easier with C. I don't know, maybe there is a nice utility which can do this. If there is I'd like to know about it too. I didn't know ultraedit could do this. Myabe it runs under wine? |
That's nice of you for the perl script but I have to do it myself (..)
Yeah I did a C program a few month ago for extracting some information of the packets but now I would like some pretty display and I'm not really keen on programming at the moment, lazy me. I'm currently looking at dissectors of ethereal (wireshark) but it seems it doesn't take arbitrary input file format. argggh Any other idea for an advanced editor that does this is welcome. |
Ok I've found 2 after googling like maniac
http://hachoir.org/wiki/WriteYourParser hachoir seems very interesting for a lot of purpose like editing video, music tags, lots of things https://gna.org/projects/dataworkshop |
data workshop looks interesting.
|
Yes very interesting.
I hope it doesn't take me more time to understand how it works than it took me to learn C language :) |
All times are GMT -5. The time now is 01:11 AM. |