$
Lernen Linux-Handbuch
de
XP:0
Quest 113Binary-Inspector
+260 XP

Binary & Hex Inspection (strings & xxd)

Interaktives Terminal für diese Quest starten→Keine Installation erforderlich • Läuft im Browser

Konzept & Übersicht

Binary executables and database files cannot be read with cat or text editors without corrupting the terminal display. Linux provides dedicated tools for inspecting compiled binaries and memory dumps:

- strings : Scans binary files and extracts continuous human-readable ASCII/UTF-8 character sequences (defaulting to 4+ characters). Essential for finding hardcoded URLs, secret keys, version strings, or embedded error messages in compiled software.
- xxd or hexdump -C : Creates a canonical two-column hexadecimal and ASCII dump of binary files to inspect magic bytes (like ELF headers) and binary data offsets.

Inspect the compiled application binary /bin/app. Extract all embedded readable strings with strings /bin/app. Then inspect its binary header in hex format using xxd /bin/app (or hexdump -C /bin/app).

Befehlssyntax-Referenz

Command / SyntaxDescription
strings /bin/appExtract readable strings from binary
xxd /bin/appView hex dump of file
hexdump -C /bin/appView canonical hex+ASCII dump

Prüfungsziele

  • ○
    Extract strings from binary with "strings /bin/app"
  • ○
    Inspect hex dump with "xxd /bin/app" or "hexdump -C /bin/app"

Bereit für Quest 113?