Router firmware analysis problem, you must first install the firmware-mod-kit
Installation command:
linux> sudo apt-get install git build-essential zlib1g-dev liblzma-dev python-magic
linux> git clone https://github.com/mirror/firmware-mod-kit.git
linux> cd firmware-mod-kit/src
linux> ./configure
linux> make
use:
extract- firmware.sh use to unpack the firmware
Build - firmware.sh to re-use packet
check_for_upgrade.sh used to check for updates
unsquashfs_all.sh use to unpack extracted squashfs file
-e isolated squashfs file binwalk
Use firmware-mod-kit:
linux> cd firmware-mod-kit
linux> ./unsquashfs_all.sh '/home/harmonica/Desktop/_filmware.bin.extracted/120200.squashfs'
linux> cd squashfs-root/tmp/
linux> ls
backdoor
Find backdoors, raised and found upx shell after shelling dragged ida, see the string
Find the URL, look at the program
Find port
Get flag