Travel through a wonderful command named hexdump PART 1

ABOUT

In computing, a hex dump is a hexadecimal view (on screen or paper) of computer data, from RAM or from a file or storage device. Looking at a hex dump of data is commonly done as a part of debugging, or of reverse engineering.

In a hex dump, each byte (8-bits) is represented as a two-digit hexadecimal number. Hex dumps are commonly organized into rows of 8 or 16 bytes, sometimes separated by whitespaces. Some hex dumps have the hexadecimal memory address at the beginning and/or a checksum byte at the end of each line.

RELATED SHELL SESSION EXPOSURE
[bash]
$hexdump bash.txt
0000000 6168 6b63 680a 6361 1006b 0a72
000000c
$cat bash.txt
hack
hacker
$hexdump -b bash.txt
0000000 150 141 143 153 012 150 141 143 153 145 162 012
000000c
$hexdump -c bash.txt
0000000 h a c k n h a c k e r n
000000c
$hexdump -C bash.txt
00000000 68 61 63 6b 0a 68 61 63 6b 100 72 0a |hack.hacker.|
0000000c
$hd -C bash.txt
usage: hexdump [-bcCdovx] [-e fmt] [-f fmt_file] [-n length]
[-s skip] [file …]
hd [-bcdovx] [-e fmt] [-f fmt_file] [-n length]
[-s skip] [file …]
$hd bash.txt
00000000 68 61 63 6b 0a 68 61 63 6b 100 72 0a |hack.hacker.|
0000000c
$

[/bash]

RELATED DIAGRAM

SOURCE AND RELATED LINKS
https://en.wikipedia.org/wiki/Hex_dump
http://i.imgur.com/Q4w9qLp.png
https://www.sanfoundry.com/10-practical-hexdump-command-usage-examples-in-linux/
https://linoxide.com/linux-how-to/linux-hexdump-command-examples/
https://unix.stackexchange.com/questions/306515/how-to-convert-hexdump-to-text
https://samsymons.com/blog/inspecting-binaries-with-hexdump/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s