$
学ぶ Linux ハンドブック
ja
XP:0
クエスト 113Binary-Inspector
+260 XP

Binary & Hex Inspection (strings & xxd)

このクエストの対話型ターミナルを起動する→インストール不要 • ブラウザ上で完全動作

概念と概要

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

コマンド構文リファレンス

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

検証目標

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

クエスト完了への準備はできましたか? 113?