Install virtualenv to ensure that the dependencies don't clutter the global requirements. This can be done with
sudo pip3 install virtualenv
Create and activate a virtualenv with the following commands:
virtualenv -p python3 venv
source venv/bin/activate
After running these commands, the bash terminal should look like this:
(venv) arjun@ubuntu:~/Desktop/binwalkgui$
Note the (venv)
at the beginning of the prompt. This tells that the venv environment has been activated.
To install binwalk, after activating the virtual environment, run the following commands:
git clone [email protected]:ReFirmLabs/binwalk.git
cd binwalk
python setup.py install
This will install binwalk into the virtualenvironment for testing.
To instll tk, run the following commands:
sudo apt install python3-tk
To install matplotlib, run the following command:
python -m pip install -U matplotlib
First, select the file you wish to scan (use custom.zip for demo)
Then from the 'Expert' option, select 'Search with custom magic file only'
Select the file that contains your custom signatures (use magic.mgc for demo)