Berkeley CSUA MOTD:Entry 21608
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2024/12/25 [General] UID:1000 Activity:popular
12/25   

2001/6/23 [Computer/SW/Languages/Perl] UID:21608 Activity:high
6/22    Is there a utility that helps you decode a hex dump?  I want a tool
        that lets you enter each field and the size of each field.  Then it
        takes in an ASCII hex dump and then decodes it according to the
        field information.  I'm getting a headache reading all these hex
        dumps.   Thanks.
        \_ perl is your friend.
           \_ Perl is the jism of satan.
              \_ is that a bad thing?
                 \_ I didn't know Saddam Hussein had a csua account.
                    \_ Get off my dick.
                       \_ I'm the hot gay dragon.
                          \_ What kind of a Marine are you???
           \_ indeed.  try "perldoc -f pack"
        \_ scanf("%x", ...)?
        \_ listen guys, I do not want to write any code to do this.  I'm
           looking for an application already written.  Free or shareware
           would be nice.   thanks.
           \_ An application to do this would require you to specify the
              format of your particular dump in some kind of detailed
              manner.  Jeez, just write the 5 or 10 lines of code it will
              take.
              \- possibly emacs hexl-mode --psb
        \_ what platform?  if Windows, frhed will let you do something like
           this, although it's a bit limited (byte/short/int/long/float/double
           fields only; can't specify bit-fields, can't specify arrays, etc.)
              \_ exactly.  you could specify a text file with type/size
                 information with each field, etc.  ok, making a custom program
                 to do it wouldn't be hard, but an already-existing, general
                 program would be still be easier.