1
mirror of https://github.com/hashcat/hashcat synced 2024-12-27 05:13:45 +01: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
min=1
max=8
if [ "${hash_type}" -eq 14000 ]; then
min=0
max=5
elif [ "${hash_type}" -eq 14100 ]; then
min=0
max=5
elif [ "${hash_type}" -eq 14900 ]; then
min=0
max=5
elif [ "${hash_type}" -eq 15400 ]; then
min=0
max=5
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"
@ -688,7 +693,9 @@ function attack_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))
fi
@ -778,6 +785,8 @@ function attack_1()
fi
if [ $i -eq ${max} ]; then break; fi
i=$((i + 1))
done 9< "${OUTD}/${hash_type}_hashes.txt"