Created
October 19, 2021 15:50
-
-
Save sprout42/d9b371014bfee02011ec8e1a373f0bdf to your computer and use it in GitHub Desktop.
Easy(est) Binwalk Install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# requires git and docker to be installed | |
git clone https://github.com/ReFirmLabs.git -b v2.3.2 $HOME/.local/src | |
cd $HOME/.local/src/binwalk | |
docker build -t binwalk:latest . | |
alias binwalk &> /dev/null | |
if [ $? -eq 0 ]; then | |
cat <<-EOF >> ~/.bash_aliases | |
function binwalk() { | |
docker run -it --rm -v "$(pwd):/tmp" -w /tmp binwalk:latest $@ | |
} | |
alias binwalk=binwalk | |
EOF | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment