You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
365 B
Plaintext

# 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