Handle the raw byte case as well

unstable
HD Moore 2012-11-20 08:54:52 -08:00
parent 7d2d64198b
commit 6b8b487506
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,8 @@ len = ARGV.shift || 8192
if (value.length >= 8 and value.hex > 0)
value = value.hex
elsif (value.length == 4)
value = value.unpack("V").first
else
value = value.to_i(16)
end