Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ALTERNATIVE TO THE METHOD BELOW: https://www.youtube.com/watch?v=ojD5v5LyYaw&ab_channel=Tech-Helpdesk
- ######################################################################
- https://github.com/jowinjohnchemban/winbinwalk
- https://github.com/ReFirmLabs/binwalk/releases
- ######################################################################
- Steps to setup...
- Install Python for Windows from www.python.org
- Download https://visualstudio.microsoft.com/visual-cpp-build-tools/
- Open CMD in the same folder as the vs_BuildTools.exe download...
- Run this Command: Install vs_BuildTools.exe --layout .\VisualCppBuildTools_Full (~15GB)
- Await the command window with the layout % to finish installation.
- Otherwise you'll get errors when trying to run these commands:
- error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
- Install python-lzma module via: pip install backports.lzma
- Maybe this would work too, idk: pip install pylzma
- ######################################################################
- Download binwalk zip from binwalk repo at GitHub: https://github.com/ReFirmLabs/binwalk/releases
- Extract and Open the directory, then open cmd there.
- Install binwalk via CMD by entering: "python setup.py install".
- ######################################################################
- In CMD type "where python" to find where your python install is located.
- You should get something like this: C:\Users\MyUsername\AppData\Local\Programs\Python\Python36\python.exe
- Copy this location to clipboard.
- Open text editor to edit this location...
- Change the appending "python.exe" to "binwalk" and add double slashes to all slashes like so:
- C:\\Users\\MyUsername\\AppData\\Local\\Programs\\Python\\Python36\\Scripts\\binwalk
- Copy this new location to clipboard...
- ######################################################################
- Now, Download the binwalk.py script from here and keep it in a isolated folder at Desktop.
- Open this folder and edit the binwalk.py script in text editor...
- Change the line:
- command = 'python "C:\\Program Files\\Python37\\Scripts\\binwalk" ' + strl
- To your python location (remove everything inside quotes, and paste the new location above):
- command = 'python "C:\\Users\\MyUsername\\AppData\\Local\\Programs\\Python\\Python36\\Scripts\\binwalk" ' + strl
- Open cmd in the binwalk.py script folder just downloaded and install pyinstaller via: "pip install pyinstaller".
- ######################################################################
- Now in the same folder, run: "pyinstaller --onefile binwalk.py", This will create an executable (.exe) of binwalk.py
- Navigate to dist folder inside current folder where you can find the executable file, Copy it to "C:\Windows\System32"
- ######################################################################
- (Now you can remove the previously created folder at Desktop.)
- ######################################################################
- Open cmd from ANY directory with the .bin/etc file to decrypt and run binwalk as usual.
- 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.
- Further notes: https://github.com/ReFirmLabs/binwalk/issues/594
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement