1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-29 11:28:15 +00:00

Merge pull request #2667 from matrix/minimized_test.sh_false_negative

minimized the test.sh false negatives with kernels 14000 14100 14900 15400, a1
This commit is contained in:
Jens Steube 2021-04-05 12:58:35 +02:00 committed by GitHub
commit d08ec23643
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -655,15 +655,20 @@ function attack_1()
cnt=0 cnt=0
min=1 min=1
max=8
if [ "${hash_type}" -eq 14000 ]; then if [ "${hash_type}" -eq 14000 ]; then
min=0 min=0
max=5
elif [ "${hash_type}" -eq 14100 ]; then elif [ "${hash_type}" -eq 14100 ]; then
min=0 min=0
max=5
elif [ "${hash_type}" -eq 14900 ]; then elif [ "${hash_type}" -eq 14900 ]; then
min=0 min=0
max=5
elif [ "${hash_type}" -eq 15400 ]; then elif [ "${hash_type}" -eq 15400 ]; then
min=0 min=0
max=5
fi fi
echo "> Testing hash type $hash_type with attack mode 1, markov ${MARKOV}, single hash, Device-Type ${TYPE}, vector-width ${VECTOR}." >> "${OUTD}/logfull.txt" 2>> "${OUTD}/logfull.txt" echo "> Testing hash type $hash_type with attack mode 1, markov ${MARKOV}, single hash, Device-Type ${TYPE}, vector-width ${VECTOR}." >> "${OUTD}/logfull.txt" 2>> "${OUTD}/logfull.txt"
@ -688,7 +693,9 @@ function attack_1()
line_nr=1 line_nr=1
if [ "${i}" -gt 1 ]; then if [ "$min" -eq 0 ]; then
line_nr=$i
elif [ "${i}" -gt 1 ]; then
line_nr=$((i - 1)) line_nr=$((i - 1))
fi fi
@ -778,6 +785,8 @@ function attack_1()
fi fi
if [ $i -eq ${max} ]; then break; fi
i=$((i + 1)) i=$((i + 1))
done 9< "${OUTD}/${hash_type}_hashes.txt" done 9< "${OUTD}/${hash_type}_hashes.txt"