in reply to unpack blob
I think you data is base64 encoded. Try decoding it first:
use Socket; my $out = `echo BAABAAXwAACkAAAAAAABLAAAAAAAAAAArBQEKA==|base64 -d`; print (unpack "H*", $out); print "\n"; print substr ((unpack "H*", $out), -8); print "\n"; print inet_ntoa(substr $out, -4);
and output
VinsWorldcom@C:\Users\VinsWorldcom\tmp> test.pl 0400010005f00000a40000000000012c0000000000000000ac140428 ac140428 172.20.4.40
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: unpack blob
by choroba (Cardinal) on Jan 12, 2016 at 22:33 UTC | |
by VinsWorldcom (Prior) on Jan 13, 2016 at 12:53 UTC | |
|
Re^2: unpack blob
by natxo (Scribe) on Jan 12, 2016 at 22:15 UTC | |
by VinsWorldcom (Prior) on Jan 13, 2016 at 13:49 UTC | |
by Tux (Canon) on Jan 13, 2016 at 14:23 UTC |