binwalk
Auth/lab ref: Firmware analysis and extraction (binwalk v3, Rust) — identify and extract embedded file systems, compressed archives, executable code, and crypto keys from binary blobs.
v2026.11.13-21cd5683 התקנות+3 ב-7 ימים39 כוכביםMITסונכרן לפני 11 שעות
התקנה
עדיין אין לכם את ה-CLI של NotHoly? התקינו אותו קודם.
$ curl -fsSL https://notholy.com/install.sh | sh$ notholy skills install aeondave/binwalkנכתב אל ~/.notholy/skills אחרי בדיקת החתימה וה-SHA-256.
חתימהחתום, ed25519
חבילהfa11d7f6…5dbbabe8
fa11d7f651c1…cbb65dbbabe83 קבצים · 2.9 KBסריקהנמוךממצא אחד
- קישורים לדומיינים חיצוניים
מקורgithub.com/AeonDave/malskill/tree/main/offensive-tools/rev/binwalk@21cd568
הפריט הזה עדיין לא נכתב בעברית, ולכן הוא מוצג בשפה אחרת: English.
בעמוד הזה
Firmware analysis and extraction — identify and extract embedded files from binary blobs. Binwalk v3 is a Rust rewrite with a different CLI; check binwalk --version and --help before use.
Contents
- Safe triage before extraction
- Installation
- Quick Start
- Core Flags
- Common Workflows
- v2 → v3 migration notes
- Emulation after extraction
- Resources
Safe triage before extraction
Follow the firmware workflow before extraction. Start with a signature/entropy scan; make recursive extraction (-M) opt-in; extract into a fresh --directory and monitor total output size externally.
On MCPwn, use firmware_analyze or binwalk_analyze with detach=True. firmware_analyze exposes the external aggregate tree budget; binwalk_analyze does so only when extract=true, because scan-only mode creates no extraction tree. unblob_analyze is also detached and session-owned. auto_malware_hunt defaults to scan-only, so request recursive extraction explicitly only after triage.
Installation
# Rust toolchain install (canonical for v3)
cargo install binwalk
# Or grab the release binary / Docker image
# https://github.com/ReFirmLabs/binwalk/releases
# Extraction dependencies (external tools binwalk v3 invokes)
sudo apt install mtd-utils gzip bzip2 tar arj lhasa p7zip p7zip-full \
cabextract squashfs-tools sleuthkit lzop srecordQuick Start
# Scan firmware for signatures
binwalk firmware.bin
# Extract matching signatures
binwalk -e firmware.bin
# Recursive (matryoshka) extraction into a fresh directory
binwalk -e -M --directory ./extracted firmware.bin
# Entropy analysis; inspect the output path reported by Binwalk
binwalk -E firmware.binCore Flags
| Flag | Purpose |
|---|---|
| (none) | Signature scan (default) |
-e |
Extract found files |
-M |
Recursive/matryoshka extraction |
-E |
Entropy analysis |
--directory DIR |
Set extraction directory |
-q |
Quiet mode |
-L |
List supported signatures and extractors |
--include SIG / --exclude SIG |
Filter signatures by name |
--log FILE |
Log JSON results to a file |
--threads N |
Parallel scan threads |
For unsupported v2 features, use separate tools for disassembly, byte search, and diffing; enforce extraction quotas externally.
Common Workflows
Full firmware analysis pipeline
# 1. Initial signature scan
binwalk firmware.bin
# 2. Entropy analysis (detect encrypted/compressed regions)
binwalk -E firmware.bin
# High entropy can indicate compression or encryption; it does not distinguish them.
# 3. Extract recursively into a fresh directory
binwalk -e -M --directory ./extracted firmware.bin
# 4. Identify filesystems
find ./extracted/ -type d
# Locate the actual extracted filesystem within offset-specific directories.Post-extraction analysis
# Find credentials
find ./extracted/ -type f \( -name "*.conf" -o -name "*.cfg" -o -name "passwd" \
-o -name "shadow" -o -name "*.key" -o -name "*.pem" \) 2>/dev/null
# Search for hardcoded secrets
grep -rn "password\|secret\|api_key\|token\|admin" ./extracted/ --include="*.conf" --include="*.sh" --include="*.lua"
# Find executables for further reversing
find ./extracted/ -type f -executable | file -f - | grep "ELF"
# Find web interfaces
find ./extracted/ -type f \( -name "*.html" -o -name "*.php" -o -name "*.cgi" \) 2>/dev/nullRaw search (replaces v2 -R)
# Find ELF/PE headers and banners by raw bytes
grep -abo $'\x7fELF' firmware.bin
grep -abo 'MZ' firmware.bin | head
strings -t x firmware.bin | grep -E "SSH-|Dropbear"Manual extraction
# Extract a specific region by offset and size
dd if=firmware.bin of=extracted_blob.bin bs=1 skip=OFFSET count=SIZE
v2 → v3 migration notes
- Install v3 using
cargo install binwalk; pip and v2 source instructions do not install v3. - v3 does not load v2 magic files; see references/custom-signatures.md for its Rust signatures.
- The
-Whexdiff and-Aopcode-scan features were dropped: usevbindiff/radare2for the same triage steps. - v2 extraction bounds are unavailable: use external quotas, scan first and select signatures with
--include.
Emulation after extraction
Locate the actual extracted root filesystem first; consult the firmware workflow for isolated emulation.
Resources
| File | When to load |
|---|---|
| references/firmware-analysis.md | Firmware filesystem types and QEMU emulation workflows |
| references/custom-signatures.md | Load when implementing a custom v3 signature |
הקבצים בגרסה הזו
references/21.6 KB
- custom-signatures.md546 B
- firmware-analysis.md1.0 KB
- SKILL.md5.3 KB
הרשאות
| הרשאה | הוצהר | נמצא בסריקה |
|---|---|---|
| קורא קבצים | לא | לא |
| כותב קבצים | לא | לא |
| מריץ פקודות shell | כן | כן |
| משתמש ברשת | כן | כן |
| משתמש במחברים | לא | לא |
| שולט בדפדפן | לא | לא |
ממצאי הסריקה
נבדק ב-13 בנוב׳ 2026
- מידעקישור · קישורים לדומיינים חיצוניים
סריקה נקייה מורידה את הסיכון, אבל לא מוכיחה שהחבילה בטוחה. כדאי לקרוא מה מתקינים.
| גרסה | פורסמה | Commit | SHA-256 | חתימה | שינוי בהרשאות |
|---|---|---|---|---|---|
| v2026.11.13-21cd568 | 13 בנוב׳ 2026 | 21cd568 | fa11d7f6 | חתומה | – |
עוד מ-AeonDave
הכול מהמפרסם הזהעוד בקטגוריה הנדסה לאחור ו-fuzzing
לקטגוריהשאלו כל מה שהסקופ מאפשר.
יוצרים חשבון, מוסיפים קרדיטים ושואלים את השאלה הראשונה בצ׳אט או בטרמינל.
- 1/3
יצירת חשבון
פרטי או חברה. אפשר לעבור לחשבון חברה אחר כך בלי לאבד יתרה או מפתחות.
פרטיחברה - 2/3
הוספת קרדיטים
בכרטיס אשראי. תשלום לפי טוקן, בלי מנוי.
$5.00טעינה מינימלית - 3/3
שאלה ראשונה
בצ׳אט, או להתקין את ה-CLI ולהריץ notholy login בטרמינל.
$ notholy login