🖥️hexdump

➡️This is a command-line reference manual for commands and command combinations that you don’t use often enough to remember it. This cheatsheet explains the hexdump command with important options and switches using examples.

▁ ▂ ▃ ▄ ꧁ 🔴☠ COMMANDLINE-KUNGFU WITH CHEATSHEETS ☠🔴꧂▅ ▃ ▂ ▁

#                ██╗  ██╗███████╗██╗  ██╗██████╗ ██╗   ██╗███╗   ███╗██████╗ 
#                ██║  ██║██╔════╝╚██╗██╔╝██╔══██╗██║   ██║████╗ ████║██╔══██╗
#                ███████║█████╗   ╚███╔╝ ██║  ██║██║   ██║██╔████╔██║██████╔╝
#                ██╔══██║██╔══╝   ██╔██╗ ██║  ██║██║   ██║██║╚██╔╝██║██╔═══╝ 
#                ██║  ██║███████╗██╔╝ ██╗██████╔╝╚██████╔╝██║ ╚═╝ ██║██║     
#                ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝╚═════╝  ╚═════╝ ╚═╝     ╚═╝╚═╝     

# side-by-side hexadecimal and ascii view of the first 128 bytes of a file
hexdump -C -n128 /etc/passwd

# Convert a binary file to C Array
hexdump -v -e '16/1 "0x%02X, "' -e '"\n"' file.bin > hexarray.h

# Convert a binary file to Shell code
hexdump -v -e '"\\""x" 1/1 "%02x" ""'

# Generate random MAC address
hexdump -n6 -e '/1 ":%02X"' /dev/random|sed s/^://g
                                 
# Use hexdump to find hidden characters (space, CR, NL, ...) that prevent uniq from collapsing all entries.
sort lines.txt |uniq |hexdump -c 

echo "​https://evilearl.io/f/2347e6cb-0ad7-4ce5-b7eb-ed344c42fe2e …" | hexdump -c 
# Unsure of that URL you copied and pasted and why it's causing problems, pipe it into hexdump to check it for non-ascii characters.

#==============================##==============================#
# CMD HEXDUMP						       #
#==============================##==============================#
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

  █║▌│║█║▌★ KALI ★ PARROT ★ DEBIAN 🔴 PENTESTING ★ HACKING ★ █║▌│║█║▌

              ██╗ ██╗ ██████╗  ██████╗ ██╗  ██╗███████╗██████╗
             ████████╗██╔══██╗██╔═══██╗╚██╗██╔╝██╔════╝██╔══██╗
             ╚██╔═██╔╝██║  ██║██║   ██║ ╚███╔╝ █████╗  ██║  ██║
             ████████╗██║  ██║██║   ██║ ██╔██╗ ██╔══╝  ██║  ██║
             ╚██╔═██╔╝██████╔╝╚██████╔╝██╔╝ ██╗███████╗██████╔╝
              ╚═╝ ╚═╝ ╚═════╝  ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═════╝

               █║▌│║█║▌ WITH COMMANDLINE-KUNGFU POWER █║▌│║█║▌

░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░