Nit: {2,2} is the same as {2}
unpack can do your hexifying quite nicely, so you end up with:
while (...) { my $raw_length = length($rows[0]); # Formerly named $ea my $encoded = unpack('H*', $rows[0]); ...do something with these vars... }
You could also use MIME::Base64, which results in a smaller output.
In reply to Re^3: Snort data_payload decoding
by ikegami
in thread Snort data_payload decoding
by amt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |