mirror of
https://github.com/brannondorsey/naive-hashcat.git
synced 2025-07-20 04:14:37 +02:00
Updates to support MacOS/OSX
This commit is contained in:
parent
e6ac6cfd32
commit
30da7f42ce
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1,3 @@
|
|||||||
dicts/rockyou.txt
|
dicts/rockyou.txt
|
||||||
|
hashcat-src
|
||||||
|
hashcat.pot
|
||||||
|
12
build-hashcat-osx.sh
Executable file
12
build-hashcat-osx.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# clone the hashcat source
|
||||||
|
git clone https://github.com/hashcat/hashcat.git hashcat-src
|
||||||
|
|
||||||
|
# clone the OpenCL headers
|
||||||
|
mkdir -p hashcat-src/deps
|
||||||
|
git clone https://github.com/KhronosGroup/OpenCL-Headers.git hashcat-src/deps/OpenCL
|
||||||
|
|
||||||
|
# build
|
||||||
|
cd hashcat-src
|
||||||
|
make
|
@ -5,10 +5,21 @@ 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
|
||||||
|
|
||||||
if [ $(uname -m) == 'x86_64' ]; then
|
# check OSX
|
||||||
HASHCAT="./hashcat-3.6.0/hashcat64.bin"
|
if [ "$(uname)" == 'Darwin' ] ; then
|
||||||
else
|
if [ -f hashcat-src/hashcat ] ; then
|
||||||
HASHCAT="./hashcat-3.6.0/hashcat32.bin"
|
HASHCAT="./hashcat-src/hashcat"
|
||||||
|
else
|
||||||
|
echo "You are running naive-hashcat on a MacOS/OSX machine but have not yet built the hashcat binary."
|
||||||
|
echo "Please run ./build-hashcat-osx.sh and try again."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
elif [ "$(uname)" == 'Linux' ] ; then
|
||||||
|
if [ $(uname -m) == 'x86_64' ]; then
|
||||||
|
HASHCAT="./hashcat-3.6.0/hashcat64.bin"
|
||||||
|
else
|
||||||
|
HASHCAT="./hashcat-3.6.0/hashcat32.bin"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# LIGHT
|
# LIGHT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user