Skip to content
PakXinKe edited this page May 5, 2020 · 3 revisions

How to run steps:

  1. Install python for windows 10 in windows store:

windowsAppStore.PNG

  1. Download binwalk from repository ReFirmLabs/binwalk:

repository.PNG

  1. in CMD:

python setup.py install --user

installForUser.PNG

  1. Create a global directory for windows, then put into two files:

globalCatalog.PNG

a. Create "binwalk.bat" file:
  @echo off
  python "%~dp0\p_binwalk.py" %1 %2 %3 %4 %5 %6 %7 %8 %9

(see binwalk.bat)

firstFile.PNG

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)

secondFile.PNG

  1. Now run CMD and test .bin file, example:

binwalk -e "toje v1.31.bin"

testRun.PNG

Clone this wiki locally