Skip to content

hexdump

Generate 30 x 30 matrix

hexdump -v -e '"%u"' </dev/urandom|fold -60|head -n 30|sed 's/\(.\{2\}\)/\1 /g'

View the system memory in clear text

hexdump -e '90/1 "%_p" "\n"' /dev/mem | less

Generat a Random MAC address

hexdump -n6 -e '/1 ":%02X"' /dev/random|sed s/^://g

Convert binary data to shellcode

hexdump -v -e '"\\""x" 1/1 "%02x" ""' <bin_file>
hexdump -C -n 20 filename
hexdump -c <file>

Find a particular string on an unmounted partition

hexdump -e '8/1 "%02X ""\t"" "' -e '8/1 "%c""\n"' /dev/sda1 | less /mystring

Generate 30 x 30 matrix

hexdump -v -e '"%u"' </dev/urandom|fold -60|head -n 30|sed 's/\(.\{2\}\)/\1 /g'

View the system memory in clear text

hexdump -e '90/1 "%_p" "\n"' /dev/mem | less

Generate a Random MAC address

hexdump -n6 -e '/1 ":%02X"' /dev/random|sed s/^://g

Convert binary data to shellcode

hexdump -v -e '"\\""x" 1/1 "%02x" ""' <bin_file>
hexdump -C -n 20 filename
hexdump -c <file>

  • Comments are closed on this article!

Last update: December 4, 2022 19:31:07