$
Aprender Manual de Linux
pt
XP:0
Missão 113Binary-Inspector
+260 XP

Binary & Hex Inspection (strings & xxd)

Iniciar terminal interativo para esta missão→Sem instalação necessária • Executado no navegador

Conceito e visão geral

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

Referência de sintaxe de comandos

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

Objetivos de verificação

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

Pronto para concluir a Missão 113?