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}"
|
||||
# WEIGHT="${WEIGHT:-"medium"}" # light, medium, heavy
|
||||
|
||||
# check already installed
|
||||
if [ -x "$(command -v hashcat)" ] ; then
|
||||
HASHCAT="hashcat"
|
||||
# check OSX
|
||||
if [ "$(uname)" == 'Darwin' ] ; then
|
||||
elif [ "$(uname)" == 'Darwin' ] ; then
|
||||
if [ -f hashcat-src/hashcat ] ; then
|
||||
HASHCAT="./hashcat-src/hashcat"
|
||||
else
|
||||
@ -30,6 +33,8 @@ elif [ "$(uname)" == 'MINGW64_NT-10.0' ] ; then
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "$HASHCAT"
|
||||
exit
|
||||
# LIGHT
|
||||
# DICTIONARY ATTACK-----------------------------------------------------------------------
|
||||
# begin with a _very_ simple and naive dictionary attack. This is blazing fast and
|
||||
|
Loading…
x
Reference in New Issue
Block a user