1
0
Fork 0
env/.pwn/bin/binwalk

21 lines
377 B
Plaintext
Raw Normal View History

2021-04-26 19:55:30 +08:00
#!/bin/sh
set -e
BASE="$HOME/.pwn/binwalk"
if [[ ! -d "$BASE/bin" ]]; then
if [[ ! -d "$BASE/src" ]]; then
git clone --depth 1 --recursive \
https://github.com/ReFirmLabs/binwalk.git \
"$BASE/src"
fi
pushd "$BASE/src"
python3 setup.py install --prefix "$BASE"
popd
fi
export PYTHONPATH="$BASE/lib/python3.9/site-packages:$PYTHONPATH"
"$BASE/bin/binwalk" "$@"