check if hashcat is already installed

This commit is contained in:
full 2020-04-20 16:18:09 +02:00
parent 1f5604fab2
commit d80cca13a3

View File

@ -5,8 +5,11 @@ POT_FILE="${POT_FILE:-hashcat.pot}"
HASH_TYPE="${HASH_TYPE:-0}" HASH_TYPE="${HASH_TYPE:-0}"
# WEIGHT="${WEIGHT:-"medium"}" # light, medium, heavy # WEIGHT="${WEIGHT:-"medium"}" # light, medium, heavy
# check already installed
if [ -x "$(command -v hashcat)" ] ; then
HASHCAT="hashcat"
# check OSX # check OSX
if [ "$(uname)" == 'Darwin' ] ; then elif [ "$(uname)" == 'Darwin' ] ; then
if [ -f hashcat-src/hashcat ] ; then if [ -f hashcat-src/hashcat ] ; then
HASHCAT="./hashcat-src/hashcat" HASHCAT="./hashcat-src/hashcat"
else else
@ -30,6 +33,8 @@ elif [ "$(uname)" == 'MINGW64_NT-10.0' ] ; then
fi fi
fi fi
echo "$HASHCAT"
exit
# LIGHT # LIGHT
# DICTIONARY ATTACK----------------------------------------------------------------------- # DICTIONARY ATTACK-----------------------------------------------------------------------
# begin with a _very_ simple and naive dictionary attack. This is blazing fast and # begin with a _very_ simple and naive dictionary attack. This is blazing fast and