brannondorsey / naive-hashcat

Crack password hashes without the fuss :cat2:
MIT License
1.21k stars 163 forks source link

Issue using only CPU #10

Open killmasta93 opened 5 years ago

killmasta93 commented 5 years ago

Hi, I was wondering if there is away to --force to use CPU rather then GPU on a vm?

Thank you

ickfosec commented 5 years ago

If you open up the naive-hashcat.sh script you can add it in yourself. Add --force at the end of the lines where the Hashcat commands are put together, such as below:

# LIGHT
# DICTIONARY ATTACK-----------------------------------------------------------------------
# begin with a _very_ simple and naive dictionary attack. This is blazing fast and 
# I've seen it crack ~20% of hashes
"$HASHCAT" -m "$HASH_TYPE" -a 0 "$HASH_FILE" dicts/rockyou.txt --potfile-path "$POT_FILE" --force

# DICTIONARY ATTACK WITH RULES------------------------------------------------------------
# now lets move on to a rule based attack, d3ad0ne.rule is a great one to start with
"$HASHCAT" -m "$HASH_TYPE" -a 0 "$HASH_FILE" dicts/rockyou.txt -r hashcat-3.6.0/rules/d3ad0ne.rule --potfile-path "$POT_FILE" --force

# rockyou is pretty good, and not too slow
"$HASHCAT" -m "$HASH_TYPE" -a 0 "$HASH_FILE" dicts/rockyou.txt -r hashcat-3.6.0/rules/rockyou-30000.rule --potfile-path "$POT_FILE" --force

# MEDIUM
# dive is a great rule file, but it takes a bit longer to run, so we will run it after d3ad0ne and rockyou
"$HASHCAT" -m "$HASH_TYPE" -a 0 "$HASH_FILE" dicts/rockyou.txt -r hashcat-3.6.0/rules/dive.rule --potfile-path "$POT_FILE" --force

# HEAVY
# MASK ATTACK (BRUTE-FORCE)---------------------------------------------------------------
"$HASHCAT" -m "$HASH_TYPE" -a 3 "$HASH_FILE" hashcat-3.6.0/masks/rockyou-1-60.hcmask --potfile-path "$POT_FILE" --force
mknx1995 commented 3 years ago

Hi,

Ive tried the solution above and it works, however its super slow on CPU, even on Light mode, it says 6hours remaining. Was wondering if there is a workaround to letting the VM use my Laptops GPU? im using Oracle, and I have a 1050TI.