>_ IzzyLab

Hands-on task

This task is step 5 of the course “Investigating a server”

Produce a hex dump

easy~2 min

Produce the hexadecimal representation of the bytes in /root/data.bin — only hex digits, with no addresses and no ASCII column, as one continuous string (or lines of hex) — and save it to /root/data.hex.

What you'll practise:
  • xxd
  • hex
  • hex dump
  • binary data
  • encoding

Topic breakdown

The default xxd output has three columns: the offset address, the hex digits themselves, and the ASCII representation — handy for the eye, but not suitable for machine processing. To get a "flat" dump of hex digits only, without addresses or an ASCII column, xxd has a separate plain-output mode enabled by the corresponding flag. This format is symmetric: the same tool later unfolds it back into the original bytes.

What's checked

  1. hex dump is correct

What it looks like