Giter Site home page Giter Site logo

winbinwalk's Introduction

Install and use binwalk in Windows

This is a redirect program to pass the arguments along with the command to execute the binwalk. eg: If user input "binwalk file.bin" as command via cmd this program will make it execute as "python binwalk file.bin" Thus making it possible to execute easily.

binwalk repo : www.github.com/ReFirmLabs/binwalk

Coded By : Jowin John Chemban

GitHub : www.github.com/jowinjohnchemban/

Twitter : www.twitter.com/jowinchemban/

Donate : www.paypal.me/jowinjohnchemban

Steps to setup...

Install Python 2.7 for Windows from www.python.org

Install python-lzma module

Download binwalk zip from binwalk repo at GitHub

Extract and Open the directory and Open cmd there.

Enter "python setup.py install", binwalk will be installed.

Now, Download the binwalk.py script from here and keep it in a isolated folder at Desktop.

Open cmd in the above folder and enter "pip install pyinstaller", pyinstaller get installed.

Enter "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 the directory with the file to decrypt and run it 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.

winbinwalk's People

Contributors

akshaykadambatt avatar cocoon avatar jowinjohnchemban avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

winbinwalk's Issues

Arguments Segregation

Hi,

You've provided the great solution but somehow script binwalk.py does not segregate arguments provided.
For instance,
binwalk -e file.bin
will execute like
binwalk -efile.bin
Which is not a valid one.

Syntax Error

Ended up having the same problem as #3 did till I finally realized my problem... (Took me a good 15 minutes..)
Sooooo

AS A REMINDER

Dont just right click 'binwalk.py' and 'save link as'
It will add hundreds of lines in that python file instead of the 6 lines in the real file.


If you see this, check your downloaded 'binwalk.py' file

Run | Error

C:\Users\dh411\OneDrive\Desktop\temp>pyinstaller --onefile binwalk.py
211 INFO: PyInstaller: 5.6.2
211 INFO: Python: 3.11.0
218 INFO: Platform: Windows-10-10.0.22000-SP0
218 INFO: wrote C:\Users\dh411\OneDrive\Desktop\temp\binwalk.spec
221 INFO: UPX is not available.
221 INFO: Extending PYTHONPATH with paths
['C:\\Users\\dh411\\OneDrive\\Desktop\\temp']
438 INFO: checking Analysis
438 INFO: Building Analysis because Analysis-00.toc is non existent
438 INFO: Initializing module dependency graph...
441 INFO: Caching module graph hooks...
452 INFO: Analyzing base_library.zip ...
2121 INFO: Loading module hook 'hook-heapq.py' from 'C:\\Users\\dh411\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\site-packages\\PyInstaller\\hooks'...
2195 INFO: Loading module hook 'hook-encodings.py' from 'C:\\Users\\dh411\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\site-packages\\PyInstaller\\hooks'...
3698 INFO: Loading module hook 'hook-pickle.py' from 'C:\\Users\\dh411\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\site-packages\\PyInstaller\\hooks'...
5157 INFO: Caching module dependency graph...
5334 INFO: running Analysis Analysis-00.toc
5337 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by C:\Users\dh411\AppData\Local\Programs\Python\Python311\python.exe
5466 INFO: Analyzing C:\Users\dh411\OneDrive\Desktop\temp\binwalk.py

Syntax error in C:\Users\dh411\OneDrive\Desktop\temp\binwalk.py
File "C:\Users\dh411\OneDrive\Desktop\temp\binwalk.py", line 72
   <title>winbinwalk/binwalk.py at master · jowinjohnchemban/winbinwalk · GitHub</title>
                                          ^
SyntaxError: invalid character '·' (U+00B7)


C:\Users\dh411\OneDrive\Desktop\temp>



Screenshots

Screenshot (3)
Screenshot (4)
Screenshot (5)

ModuleNotFoundError: No module named 'pwd'

Run the created exe got error:

Traceback (most recent call last):
File "c:\users\nyconing\appdata\local\programs\python\python37-32\Scripts\binwalk", line 4, in
import('pkg_resources').run_script('binwalk==2.3.3', 'binwalk')
File "C:\Users\Nyconing\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pkg_resources_init_.py", line 672, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "C:\Users\Nyconing\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pkg_resources_init_.py", line 1472, in run_script
exec(code, namespace, namespace)
File "c:\users\nyconing\appdata\local\programs\python\python37-32\lib\site-packages\binwalk-2.3.3-py3.7.egg\EGG-INFO\scripts\binwalk", line 2, in
from binwalk.main import main
File "C:\Users\Nyconing\AppData\Local\Programs\Python\Python37-32\lib\site-packages\binwalk-2.3.3-py3.7.egg\binwalk_main_.py", line 24, in
import binwalk.modules
File "C:\Users\Nyconing\AppData\Local\Programs\Python\Python37-32\lib\site-packages\binwalk-2.3.3-py3.7.egg\binwalk\modules_init_.py", line 16, in
from binwalk.modules.extractor import Extractor
File "C:\Users\Nyconing\AppData\Local\Programs\Python\Python37-32\lib\site-packages\binwalk-2.3.3-py3.7.egg\binwalk\modules\extractor.py", line 7, in
import pwd
ModuleNotFoundError: No module named 'pwd'

Syntax error

Syntax error in C:\Users\John Maugeri\Desktop\binwalk script\binwalk.py
File "C:\Users\John Maugeri\Desktop\binwalk script\binwalk.py", line 67
<title>winbinwalk/binwalk.py at master · jowinjohnchemban/winbinwalk</title>
^
SyntaxError: invalid character '·' (U+00B7)

No Such File or Directory

Followed the steps without issue, I'm now trying to use the binwalk command to analyze a file but getting:

python: can't open file 'C:\Program Files\Python37\Scripts\binwalk': [Errno 2] No such file or directory

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.