mirror of
https://github.com/brannondorsey/naive-hashcat.git
synced 2025-07-31 01:34:51 +02:00
check if hashcat is already installed
This commit is contained in:
parent
1f5604fab2
commit
d80cca13a3
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user