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

18 lines
328 B
Bash
Executable File

#!/bin/sh
set -e
BASE="$HOME/.pwn/sqlmap"
if [[ ! -d "$BASE/bin" ]]; then
if [[ ! -d "$BASE/src" ]]; then
git clone --depth 1 --recursive \
https://github.com/sqlmapproject/sqlmap.git \
"$BASE/src"
fi
ln -s "$BASE/src/sqlmap.py" "$BASE/bin/sqlmap.py"
chmod +x "$BASE/bin/sqlmap.py"
fi
"$BASE/bin/sqlmap.py" "$@"