Closed kismp123 closed 4 years ago
Please run reset.py
or manually delete the contents of the scratch
and images
directory.
Tested and it works fine.
attify@attify:~/firmware-analysis-toolkit$ ./fat.py WF2785_v1.8.36.bin
__ _
/ _| | |
| |_ __ _ | |_
| _| / _` | | __|
| | | (_| | | |_
|_| \__,_| \__|
Welcome to the Firmware Analysis Toolkit - v0.3
Offensive IoT Exploitation Training http://bit.do/offensiveiotexploitation
By Attify - https://attify.com | @attifyme
[+] Firmware: WF2785_v1.8.36.bin
[+] Extracting the firmware...
[+] Image ID: 1
[+] Identifying architecture...
[+] Architecture: mipsel
[+] Building QEMU disk image...
[+] Setting up the network connection, please standby...
[+] Network interfaces: [('br0', '192.168.1.1')]
[+] All set! Press ENTER to run the firmware...
[+] When running, press Ctrl + A X to terminate qemu
It does not work :(
gegul@unknown:~/firmware/firmware-analysis-toolkit$ ls
LICENSE WF2785_v1.8.36.bin fat.config firmadyne reset.py
README.md binwalk fat.py qemu-builds setup.sh
gegul@unknown:~/firmware/firmware-analysis-toolkit$ ls ..
20181005_Zyxel_LTE3302-M432_V1.00(ABKQ.1)C0.bin firmware-analysis-toolkit
XNB-8000_1.40.02_20191024_R484.img
gegul@unknown:~/firmware/firmware-analysis-toolkit$ ls ../../
firmware
gegul@unknown:~/firmware/firmware-analysis-toolkit$ ls
LICENSE WF2785_v1.8.36.bin fat.config firmadyne reset.py
README.md binwalk fat.py qemu-builds setup.sh
gegul@unknown:~/firmware/firmware-analysis-toolkit$ ./fat.py WF2785_v1.8.36.bin
__ _
/ _| | |
| |_ __ _ | |_
| _| / _` | | __|
| | | (_| | | |_
|_| \__,_| \__|
Welcome to the Firmware Analysis Toolkit - v0.3
Offensive IoT Exploitation Training http://bit.do/offensiveiotexploitation
By Attify - https://attify.com | @attifyme
[+] Firmware: WF2785_v1.8.36.bin
[+] Extracting the firmware...
[!] Image extraction failed
gegul@unknown:~/firmware/firmware-analysis-toolkit$ ls
LICENSE WF2785_v1.8.36.bin fat.config firmadyne reset.py
README.md binwalk fat.py qemu-builds setup.sh
gegul@unknown:~/firmware/firmware-analysis-toolkit$
there is no images or scratch
gegul@unknown:~/firmware/firmware-analysis-toolkit$ ./reset.py
[+] Cleaning previous images and created files by firmadyne
[+] All done. Go ahead and run fat.py to continue firmware analysis
gegul@unknown:~/firmware/firmware-analysis-toolkit$ ./fat.py WF2785_v1.8.36.bin
__ _
/ _| | |
| |_ __ _ | |_
| _| / _` | | __|
| | | (_| | | |_
|_| \__,_| \__|
Welcome to the Firmware Analysis Toolkit - v0.3
Offensive IoT Exploitation Training http://bit.do/offensiveiotexploitation
By Attify - https://attify.com | @attifyme
[+] Firmware: WF2785_v1.8.36.bin
[+] Extracting the firmware...
[!] Image extraction failed
gegul@unknown:~/firmware/firmware-analysis-toolkit$
same. this information might help us to solve this problem
gegul@unknown:~/firmware/firmware-analysis-toolkit$ uname -a
Linux unknown 4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:01:15 UTC 2019 i686 i686 i686 GNU/Linux
The images
and scratch
directory are located within firmware-analysis-toolkit/firmadyne
Just delete the contents of those two directories. Not the directories themselves.
It works! Thanks!
gegul@unknown:~/firmware/firmware-analysis-toolkit$ sudo ./fat.py WF2785_v1.8.36.bin
__ _
/ _| | |
| |_ __ _ | |_
| _| / _` | | __|
| | | (_| | | |_
|_| \__,_| \__|
Welcome to the Firmware Analysis Toolkit - v0.3
Offensive IoT Exploitation Training http://bit.do/offensiveiotexploitation
By Attify - https://attify.com | @attifyme
[+] Firmware: WF2785_v1.8.36.bin
[+] Extracting the firmware...
[+] Image ID: 1
[+] Identifying architecture...
[+] Architecture: mipsel
[+] Building QEMU disk image...
[+] Setting up the network connection, please standby...
[+] Network interfaces: [('br0', '192.168.1.1')]
[+] All set! Press ENTER to run the firmware...
[+] When running, press Ctrl + A X to terminate qemu
Hi there!, first I wanna thank you guys gave me to use this great thing. I have met a problem as title, it messaged out 'Image extraction failed' when I executed fat.py
I have been trying some firmwares and I got same message as I wrote. However, when I executed /firmadyne/sources/extractor/extractor.py, it looks like this
I think it works. How can I solve this problem?