One liner hexdumper in Ruby :-)

File.open(ARGV[0] || “a.out”,”rb”).each_byte { |byte| printf “\\x%02x”, byte }

Leave a Reply

Your email address will not be published. Required fields are marked *