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

Merge pull request #2286 from philsmd/patch-1

tests: fix return code check in attack_0 () function
This commit is contained in:
Jens Steube 2020-01-16 13:51:04 +01:00 committed by GitHub
commit 6732ce2352
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -500,10 +500,10 @@ function attack_0()
output=$(echo "${pass}" | ./${BIN} ${OPTS} -a 0 -m ${hash_type} "${hash}" 2>&1) output=$(echo "${pass}" | ./${BIN} ${OPTS} -a 0 -m ${hash_type} "${hash}" 2>&1)
pass=${pass_old}
ret=${?} ret=${?}
pass=${pass_old}
echo "${output}" >> "${OUTD}/logfull.txt" echo "${output}" >> "${OUTD}/logfull.txt"
if [ "${ret}" -eq 0 ]; then if [ "${ret}" -eq 0 ]; then