-
Notifications
You must be signed in to change notification settings - Fork 0
Home
PakXinKe edited this page May 5, 2020
·
3 revisions
- Install python for windows 10 in windows store:
- Download binwalk from repository ReFirmLabs/binwalk:
- in CMD:
python setup.py install --user
- Create a global directory for windows, then put into two files:
a. Create "binwalk.bat" file:
@echo off python "%~dp0\p_binwalk.py" %1 %2 %3 %4 %5 %6 %7 %8 %9
(see binwalk.bat)
b. Create "p_binwalk.py" file:
import sys import binwalk if __name__ == "__main__": lst=sys.argv if len(lst)<2: print("No files.") exit() try: if lst[1][0]=='-': binwalk.scan(*lst[2:],signature=lst[1]) elif lst[1][0]!='-': binwalk.scan(*lst[1:],signature=True) except: pass
(see p_binwalk.py)
- Now run CMD and test .bin file, example:
binwalk -e "toje v1.31.bin"