Advertisement
BaSs_HaXoR

How To Run Binwalk on Windows 10/11

Oct 7th, 2024 (edited)
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.32 KB | None | 0 0
  1. ALTERNATIVE TO THE METHOD BELOW: https://www.youtube.com/watch?v=ojD5v5LyYaw&ab_channel=Tech-Helpdesk
  2. ######################################################################
  3. https://github.com/jowinjohnchemban/winbinwalk
  4. https://github.com/ReFirmLabs/binwalk/releases
  5. ######################################################################
  6. Steps to setup...
  7.  
  8. Install Python for Windows from www.python.org
  9.  
  10. Download https://visualstudio.microsoft.com/visual-cpp-build-tools/
  11. Open CMD in the same folder as the vs_BuildTools.exe download...
  12. Run this Command: Install vs_BuildTools.exe --layout .\VisualCppBuildTools_Full (~15GB)
  13. Await the command window with the layout % to finish installation.
  14.  
  15. Otherwise you'll get errors when trying to run these commands:
  16. error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
  17.  
  18. Install python-lzma module via: pip install backports.lzma
  19. Maybe this would work too, idk: pip install pylzma
  20. ######################################################################
  21. Download binwalk zip from binwalk repo at GitHub: https://github.com/ReFirmLabs/binwalk/releases
  22. Extract and Open the directory, then open cmd there.
  23. Install binwalk via CMD by entering: "python setup.py install".
  24. ######################################################################
  25. In CMD type "where python" to find where your python install is located.
  26. You should get something like this: C:\Users\MyUsername\AppData\Local\Programs\Python\Python36\python.exe
  27.  
  28. Copy this location to clipboard.
  29.  
  30. Open text editor to edit this location...
  31. Change the appending "python.exe" to "binwalk" and add double slashes to all slashes like so:
  32.  
  33. C:\\Users\\MyUsername\\AppData\\Local\\Programs\\Python\\Python36\\Scripts\\binwalk
  34. Copy this new location to clipboard...
  35. ######################################################################
  36. Now, Download the binwalk.py script from here and keep it in a isolated folder at Desktop.
  37. Open this folder and edit the binwalk.py script in text editor...
  38.  
  39. Change the line:
  40. command = 'python "C:\\Program Files\\Python37\\Scripts\\binwalk" ' + strl
  41.  
  42. To your python location (remove everything inside quotes, and paste the new location above):
  43. command = 'python "C:\\Users\\MyUsername\\AppData\\Local\\Programs\\Python\\Python36\\Scripts\\binwalk" ' + strl
  44.  
  45. Open cmd in the binwalk.py script folder just downloaded and install pyinstaller via: "pip install pyinstaller".
  46. ######################################################################
  47. Now in the same folder, run: "pyinstaller --onefile binwalk.py", This will create an executable (.exe) of binwalk.py
  48. Navigate to dist folder inside current folder where you can find the executable file, Copy it to "C:\Windows\System32"
  49. ######################################################################
  50. (Now you can remove the previously created folder at Desktop.)
  51. ######################################################################
  52. Open cmd from ANY directory with the .bin/etc file to decrypt and run binwalk as usual.
  53.  
  54. DISCLAIMER : This is just a modification to the orginal binwalk and all the credits regarding binwalk goes to the orginal developers. Any doubts regarding binwalk visit the orginal repo.
  55.  
  56. Further notes: https://github.com/ReFirmLabs/binwalk/issues/594
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement