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
In reply to Re: unpack blob
by VinsWorldcom
in thread unpack blob
by natxo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |