1
0
Fork 0

Add hashpump

main
Ambrose Chua 2021-04-26 11:46:57 +08:00
parent dc5ba6c8a8
commit 2d4dc5f01e
1 changed files with 22 additions and 0 deletions

22
.pwn/bin/hashpump Executable file
View File

@ -0,0 +1,22 @@
#!/bin/sh
set -e
BASE="$HOME/.pwn/hashpump"
if [[ ! -d "$BASE/bin" ]]; then
if [[ ! -d "$BASE/src" ]]; then
git clone --depth 1 --recursive \
https://github.com/bwall/HashPump.git \
"$BASE/src"
fi
if ! ldconfig -p | grep libssl > /dev/null; then
echo "Please install openssl-devel"
exit 1
fi
make --directory "$BASE/src" INSTALLLOCATION="$BASE/bin/"
mkdir "$BASE/bin"
make --directory "$BASE/src" INSTALLLOCATION="$BASE/bin/" install
fi
"$BASE/bin/hashpump" "$@"