💾 Reverse: Firmware Extraction

ADVANCED  350 pts   A budget IoT router firmware image has hardcoded credentials. Extract the filesystem and find the flag in the config file.
Firmware Analyzer v2.1  |  File: WRT-X200-v3.2.1.bin  |  Size: 8 MB ⬇ Download firmware.bin
Firmware Analyzer Shell — WRT-X200-v3.2.1
Firmware loaded: 8,388,608 bytes
Type commands below. Try: binwalk firmware.bin
---
root@analyzer:~$

Hint — Workflow

1. Run binwalk firmware.bin to identify embedded filesystems
2. Run binwalk -e firmware.bin to extract them
3. Use ls and cat to explore the extracted filesystem
4. Check squashfs-root/etc/ for interesting files
5. Run strings firmware.bin | grep flag as an alternative shortcut