mirror of
https://github.com/hashcat/hashcat.git
synced 2025-02-09 06:02:43 +00:00
Merge pull request #933 from matrix/fixTestSh
Fix test.sh -m all bug & truecrypt tests
This commit is contained in:
commit
a192cda224
@ -157,6 +157,10 @@ function init()
|
|||||||
|
|
||||||
rm -rf ${OUTD}/${hash_type}.sh ${OUTD}/${hash_type}_passwords.txt ${OUTD}/${hash_type}_hashes.txt
|
rm -rf ${OUTD}/${hash_type}.sh ${OUTD}/${hash_type}_passwords.txt ${OUTD}/${hash_type}_hashes.txt
|
||||||
|
|
||||||
|
if [[ ${hash_type} -ge 6211 ]] && [[ ${hash_type} -le 6243 ]]; then
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
# create list of password and hashes of same type
|
# create list of password and hashes of same type
|
||||||
grep " ${hash_type} '" ${OUTD}/all.sh > ${OUTD}/${hash_type}.sh 2>/dev/null
|
grep " ${hash_type} '" ${OUTD}/all.sh > ${OUTD}/${hash_type}.sh 2>/dev/null
|
||||||
|
|
||||||
@ -2109,11 +2113,11 @@ if [ "${PACKAGE}" -eq 0 -o -z "${PACKAGE_FOLDER}" ]; then
|
|||||||
|
|
||||||
if [[ ${IS_SLOW} -eq 1 ]]; then
|
if [[ ${IS_SLOW} -eq 1 ]]; then
|
||||||
|
|
||||||
if [[ ${HT} -ge 6211 ]] && [[ ${HT} -le 6243 ]]; then
|
if [[ ${hash_type} -ge 6211 ]] && [[ ${hash_type} -le 6243 ]]; then
|
||||||
# run truecrypt tests
|
# run truecrypt tests
|
||||||
truecrypt_test ${HT} 0
|
truecrypt_test ${hash_type} 0
|
||||||
truecrypt_test ${HT} 1
|
truecrypt_test ${hash_type} 1
|
||||||
truecrypt_test ${HT} 2
|
truecrypt_test ${hash_type} 2
|
||||||
else
|
else
|
||||||
# run attack mode 0 (stdin)
|
# run attack mode 0 (stdin)
|
||||||
if [[ ${ATTACK} -eq 65535 ]] || [[ ${ATTACK} -eq 0 ]]; then attack_0; fi
|
if [[ ${ATTACK} -eq 65535 ]] || [[ ${ATTACK} -eq 0 ]]; then attack_0; fi
|
||||||
|
Loading…
Reference in New Issue
Block a user