HexDump Using Python!
A hex dump is a hexadecimal view of computer data, from RAM or from a computer file or storage device. Looking at a hex dump of data is usually done in the context of either debugging or reverse engineering. In a hex dump, each byte is represented as a two-digit hexadecimal number.
xxd in linux?
The xxd command in Linux lets you create a hexdump or even do the reverse
I have tested this program using imagefile(hex.PNG) and a textfile(test.txt). With WSL 2 Kali Linux on my Windows Machine.
- open command prompt
- navigate to file path
- type the following command
python hex_dump.py <test.txt>
python hex_dump.py <test.jpg>
- open terminal
- navigate to file path
- type the following command
python3 hex_dump.py <test.txt>
python3 hex_dump.py <test.jpg>