in reply to Snort data_payload decoding
converts $rows[0] to binary data represented by the hexadecimal pairs, and sets $ea to the number of replace actions done by s///. It sounds like you want to store $rows[0] somewhere, to use later.$ea = $rows[0] =~ s/([a-fA-F0-9]{2,2})/chr(hex($1))/exg;
Also, you can use pack() for this:
Note: The data you present contain unprintable characters in ASCII, so mailing them around in plain text is probably not a good idea.$string = pack "H*",$rows[0];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Snort data_payload decoding
by amt (Monk) on Oct 14, 2004 at 15:12 UTC | |
by ikegami (Patriarch) on Oct 14, 2004 at 15:51 UTC | |
by amt (Monk) on Oct 14, 2004 at 16:23 UTC | |
by ikegami (Patriarch) on Oct 14, 2004 at 16:32 UTC | |
by hsinclai (Deacon) on Oct 14, 2004 at 16:49 UTC |