การแยกและวิเคราะห์ระบบไฟล์จากเฟิร์มแวร์
แยก ระบุ และเมานต์ระบบไฟล์ฝังตัวที่ซ่อนอยู่ในอิมเมจเฟิร์มแวร์ เพื่อกู้คืนไบนารี การกำหนดค่า และคีย์ที่อยู่ภายใน
การแยกและวิเคราะห์ระบบไฟล์จากเฟิร์มแวร์ เป็นบทเรียน Reverse Engineering & Binary Analysis Basics ฟรีบน CoddyKit นี่คือบทเรียนที่ 4 จากทั้งหมด 4 บทเรียน คุณสามารถอ่านบทเรียนทั้งหมดด้านล่างฟรี — จากนั้นลองปฏิบัติด้วยตัวคุณเองในเบราว์เซอร์พร้อมตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7 บทเรียนนี้เป็นส่วนหนึ่งของเส้นทางการเรียน Reverse Engineering & Binary Analysis Basics และความก้าวหน้าของคุณจะซิงค์ข้ามเว็บและแอป CoddyKit คอร์ส Reverse Engineering & Binary Analysis Basics มีบทเรียนทั้งหมด 4 บทเรียน
บางส่วนของบทเรียนนี้ยังไม่ได้รับการแปล และแสดงเป็นภาษาอังกฤษ
Inside the Firmware Blob
You can analyze firmware images, emulate embedded binaries, and use hardware-assisted debugging. Most firmware is more than code: it embeds entire filesystems holding executables, web pages, and secrets.
Extracting them is often where the real findings live.
Firmware Layout
A typical image is a stack of regions:
- Bootloader
- Kernel
- One or more root filesystems
- Configuration / NVRAM areas
Each region may use a different format and compression.
Identifying Contents with binwalk
binwalk scans for known magic signatures and reports what is inside and where.
binwalk firmware.bin
# 0x40 uImage header
# 0x1A00 Squashfs filesystem, gzipCarving Out Sections
Once you know offsets, you can extract a region. binwalk can do this automatically, or you can carve with dd.
binwalk -e firmware.bin
# or carve manually:
dd if=firmware.bin of=rootfs.sqsh bs=1 skip=6656Common Embedded Filesystems
Embedded devices favor compact, sometimes read-only filesystems:
- SquashFS (compressed, read-only)
- JFFS2 / UBIFS (flash-aware)
- CramFS (older, read-only)
Each needs the matching tool to unpack.
Unpacking SquashFS
SquashFS is the most common. Extract it with unsquashfs to get a normal directory tree.
unsquashfs rootfs.sqsh
# creates ./squashfs-root with /bin /etc /www ...What to Look For
Inside the root filesystem, hunt for high-value files:
/etc/passwdand hardcoded credentials- Web admin scripts in
/www - TLS keys and certificates
- Startup scripts revealing services
grep -rIn 'password' squashfs-root/etc 2>/dev/nullFinding Hardcoded Secrets
Vendors frequently embed backdoor accounts or API keys. Scan strings across the whole tree and inspect config files.
These secrets are the most common firmware vulnerability you will report.
Connecting to Your Other Skills
Extracted binaries feed back into your earlier work: emulate a recovered service binary, or attach hardware-assisted debugging to a running device executing that same code.
Filesystem extraction unlocks the targets for those techniques.
When Extraction Fails
If binwalk finds nothing, the image may be encrypted or use a proprietary container.
- Check entropy: uniformly high suggests encryption
- Look for the bootloader's decryption routine
- Try vendor update tools or known keys
Repacking After Modification
For dynamic testing you sometimes patch a filesystem and put it back. Repack with the matching tool and fix the firmware header checksum, or the device rejects the image.
Always work on copies and keep the pristine original for reference.
mksquashfs squashfs-root rootfs_new.sqsh -comp gzipQuick Check
Which tool is commonly used to scan a firmware image for embedded filesystems and other known structures by their signatures?
Recap
You can now mine firmware for its real contents:
- Map the layout, then identify regions with binwalk
- Carve sections and unpack SquashFS/JFFS2/UBIFS
- Hunt for credentials, keys, and admin scripts
- Feed recovered binaries into emulation and debugging
คำถามที่พบบ่อย
บทเรียน “การแยกและวิเคราะห์ระบบไฟล์จากเฟิร์มแวร์” ฟรีหรือไม่
ใช่ — ข้อความเต็มของ “การแยกและวิเคราะห์ระบบไฟล์จากเฟิร์มแวร์” ฟรีให้อ่านที่นี่บนเว็บ เพื่อปฏิบัติแบบโต้ตอบ (ตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7) และปลดล็อคส่วนที่เหลือของคอร์ส Reverse Engineering & Binary Analysis Basics ให้อัปเกรดเป็น CoddyKit PRO คอร์ส Reverse Engineering & Binary Analysis Basics มีบทเรียนทั้งหมด 4 บทเรียน
คุณจะเรียนรู้อะไรในบทเรียน “การแยกและวิเคราะห์ระบบไฟล์จากเฟิร์มแวร์”
แยก ระบุ และเมานต์ระบบไฟล์ฝังตัวที่ซ่อนอยู่ในอิมเมจเฟิร์มแวร์ เพื่อกู้คืนไบนารี การกำหนดค่า และคีย์ที่อยู่ภายใน คุณปฏิบัติ Reverse Engineering & Binary Analysis Basics ด้วยโค้ดที่ใช้งานได้จริงที่คุณเรียกใช้โดยตรงในเบราว์เซอร์ และติวเตอร์ AI ตลอด 24/7 ตอบคำถามของคุณขณะที่คุณไปผ่านบทเรียน
คุณต้องมีประสบการณ์ก่อนที่จะเริ่มเรียน Reverse Engineering & Binary Analysis Basics หรือไม่
ไม่จำเป็นต้องมีประสบการณ์มาก่อน Reverse Engineering & Binary Analysis Basics บน CoddyKit ออกแบบมาสำหรับผู้เริ่มต้นไปจนถึงผู้เรียนขั้นสูง คุณสามารถเริ่มต้นที่นี่หรือเริ่มจากตัวแรกและเรียนด้วยความเร็วของคุณเอง นี่คือบทเรียนที่ 4 จากทั้งหมด 4 บทเรียน
บทเรียน “การแยกและวิเคราะห์ระบบไฟล์จากเฟิร์มแวร์” ใช้เวลานานแค่ไหน
บทเรียน CoddyKit ส่วนใหญ่ใช้เวลาประมาณ 5–10 นาที แต่ละบทเรียนจึงสั้นและเป็นแบบโต้ตอบ คุณสามารถก้าวหน้าอย่างต่อเนื่องและกลับมาเรียนต่อจากตรงที่เพิ่งหยุดบนเว็บและแอปได้เลย
ฉันเขียนและรันโค้ดในบทเรียน Reverse Engineering & Binary Analysis Basics นี้ได้ไหม
ได้ บทเรียน Reverse Engineering & Binary Analysis Basics ทุกบทมีตัวแก้ไขโค้ดในตัว คุณจึงเขียนและรันโค้ดจริงได้เลยในเบราว์เซอร์ และได้รับข้อเสนอแนะจาก AI ในทันที — ไม่ต้องติดตั้งในเครื่องของคุณ
บทเรียนทั้งหมดในหลักสูตรนี้
- การวิเคราะห์อิมเมจเฟิร์มแวร์
- การจำลองไบนารีแบบฝังตัว
- การดีบักโดยอาศัยฮาร์ดแวร์
- การแยกและวิเคราะห์ระบบไฟล์จากเฟิร์มแวร์