Mengekstrak dan Menganalisis Sistem File dari Firmware
Ekstrak, identifikasi, dan pasang sistem file tertanam yang tersembunyi di dalam citra firmware untuk memulihkan biner, konfigurasi, dan kunci yang dikandungnya.
Mengekstrak dan Menganalisis Sistem File dari Firmware adalah pelajaran Reverse Engineering & Binary Analysis Basics gratis di CoddyKit. Ini adalah pelajaran 4 dari 4. Kamu bisa membaca pelajaran lengkapnya di bawah secara gratis — lalu praktikkan langsung di browser dengan editor kode bawaan dan tutor AI 24/7. Ini adalah bagian dari jalur belajar Reverse Engineering & Binary Analysis Basics, dan progresmu tersinkronisasi di web dan aplikasi CoddyKit. Kursus Reverse Engineering & Binary Analysis Basics mencakup 4 pelajaran total.
Bagian dari pelajaran ini belum diterjemahkan dan ditampilkan dalam bahasa Inggris.
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
Belajar Assembly dengan tutor AI — gratis
Tulis dan jalankan kode asli di browser kamu, dapatkan bantuan instan dari tutor AI 24/7, dan lanjutkan di mana kamu tinggalkan di web atau aplikasi.
- Kursus
- 12
- Pelajaran
- 48
Pertanyaan yang Sering Diajukan
Apakah pelajaran “Mengekstrak dan Menganalisis Sistem File dari Firmware” gratis?
Ya — teks lengkap “Mengekstrak dan Menganalisis Sistem File dari Firmware” gratis dibaca di sini di web. Untuk praktiknya secara interaktif (editor kode bawaan dan tutor AI 24/7) dan buka sisa kursus Reverse Engineering & Binary Analysis Basics, upgrade ke CoddyKit PRO. Kursus Reverse Engineering & Binary Analysis Basics mencakup 4 pelajaran total.
Apa yang akan aku pelajari di “Mengekstrak dan Menganalisis Sistem File dari Firmware”?
Ekstrak, identifikasi, dan pasang sistem file tertanam yang tersembunyi di dalam citra firmware untuk memulihkan biner, konfigurasi, dan kunci yang dikandungnya. Kamu berlatih Reverse Engineering & Binary Analysis Basics dengan kode praktik yang langsung kamu jalankan di browser, dan tutor AI 24/7 menjawab pertanyaanmu saat kamu mengerjakan pelajaran ini.
Apakah aku perlu pengalaman untuk memulai Reverse Engineering & Binary Analysis Basics?
Tidak diperlukan pengalaman sebelumnya. Reverse Engineering & Binary Analysis Basics di CoddyKit dirancang untuk pemula hingga pelajar tingkat lanjut, jadi kamu bisa memulai di sini atau dari awal dan belajar sesuai kecepatan kamu sendiri. Ini adalah pelajaran 4 dari 4.
Berapa lama pelajaran “Mengekstrak dan Menganalisis Sistem File dari Firmware” memakan waktu?
Sebagian besar pelajaran CoddyKit memakan waktu sekitar 5–10 menit. Setiap pelajaran ringkas dan interaktif, jadi kamu membuat kemajuan stabil dan melanjutkan dari tempat kamu tinggalkan di web dan aplikasi.
Bisakah aku menulis dan menjalankan kode dalam pelajaran Reverse Engineering & Binary Analysis Basics ini?
Ya. Setiap pelajaran Reverse Engineering & Binary Analysis Basics menyertakan editor kode bawaan, jadi kamu menulis dan menjalankan kode nyata langsung di browser dan mendapatkan umpan balik AI instan — tidak diperlukan penyiapan lokal.
Semua pelajaran dalam kursus ini
- Menganalisis Citra Firmware
- Mengemulasikan Biner Tertanam
- Debugging Berbantuan Perangkat Keras
- Mengekstrak dan Menganalisis Sistem File dari Firmware