$
Apprendre Manuel Linux
fr
XP :0
Quête 113Binary-Inspector
+260 XP

Binary & Hex Inspection (strings & xxd)

Lancer le terminal interactif pour cette quête→Aucune installation requise • S'exécute dans le navigateur

Concept et aperçu

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).

Référence de syntaxe des commandes

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

Objectifs de vérification

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

Prêt à terminer la Quête 113?