Skip to content

Instantly share code, notes, and snippets.

@sprout42
Created October 19, 2021 15:50
Show Gist options
  • Save sprout42/d9b371014bfee02011ec8e1a373f0bdf to your computer and use it in GitHub Desktop.
Save sprout42/d9b371014bfee02011ec8e1a373f0bdf to your computer and use it in GitHub Desktop.
Easy(est) Binwalk Install
#!/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