mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-23 07:08:19 +00:00
show kernel type (pure or optimized) in test.sh output
This commit is contained in:
parent
15bf8b7302
commit
123ce08e74
@ -445,7 +445,7 @@ function attack_0()
|
|||||||
e_nm=0
|
e_nm=0
|
||||||
cnt=0
|
cnt=0
|
||||||
|
|
||||||
echo "> Testing hash type $hash_type with attack mode 0, 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 0, markov ${MARKOV}, single hash, Device-Type ${TYPE}, Kernel-Type ${KERNEL_TYPE}, Vector-Width ${VECTOR}." >> "${OUTD}/logfull.txt" 2>> "${OUTD}/logfull.txt"
|
||||||
|
|
||||||
max=32
|
max=32
|
||||||
|
|
||||||
@ -542,7 +542,7 @@ function attack_0()
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "[ ${OUTD} ] [ Type ${hash_type}, Attack 0, Mode single, Device-Type ${TYPE}, Vector-Width ${VECTOR} ] > $msg : ${e_nf}/${cnt} not found, ${e_nm}/${cnt} not matched, ${e_to}/${cnt} timeout"
|
echo "[ ${OUTD} ] [ Type ${hash_type}, Attack 0, Mode single, Device-Type ${TYPE}, Kernel-Type ${KERNEL_TYPE}, Vector-Width ${VECTOR} ] > $msg : ${e_nf}/${cnt} not found, ${e_nm}/${cnt} not matched, ${e_to}/${cnt} timeout"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -554,7 +554,7 @@ function attack_0()
|
|||||||
e_nm=0
|
e_nm=0
|
||||||
cnt=0
|
cnt=0
|
||||||
|
|
||||||
echo "> Testing hash type $hash_type with attack mode 0, markov ${MARKOV}, multi hash, Device-Type ${TYPE}, vector-width ${VECTOR}." >> "${OUTD}/logfull.txt" 2>> "${OUTD}/logfull.txt"
|
echo "> Testing hash type $hash_type with attack mode 0, markov ${MARKOV}, multi hash, Device-Type ${TYPE}, Kernel-Type ${KERNEL_TYPE}, Vector-Width ${VECTOR}." >> "${OUTD}/logfull.txt" 2>> "${OUTD}/logfull.txt"
|
||||||
|
|
||||||
hash_file=${OUTD}/${hash_type}_hashes.txt
|
hash_file=${OUTD}/${hash_type}_hashes.txt
|
||||||
|
|
||||||
@ -631,7 +631,7 @@ function attack_0()
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "[ ${OUTD} ] [ Type ${hash_type}, Attack 0, Mode multi, Device-Type ${TYPE}, Vector-Width ${VECTOR} ] > $msg : ${e_nf}/${cnt} not found, ${e_nm}/${cnt} not matched, ${e_to}/${cnt} timeout"
|
echo "[ ${OUTD} ] [ Type ${hash_type}, Attack 0, Mode multi, Device-Type ${TYPE}, Kernel-Type ${KERNEL_TYPE}, Vector-Width ${VECTOR} ] > $msg : ${e_nf}/${cnt} not found, ${e_nm}/${cnt} not matched, ${e_to}/${cnt} timeout"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -666,7 +666,7 @@ function attack_1()
|
|||||||
min=0
|
min=0
|
||||||
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}, Kernel-Type ${KERNEL_TYPE}, Vector-Width ${VECTOR}." >> "${OUTD}/logfull.txt" 2>> "${OUTD}/logfull.txt"
|
||||||
i=1
|
i=1
|
||||||
while read -r -u 9 hash; do
|
while read -r -u 9 hash; do
|
||||||
|
|
||||||
@ -794,7 +794,7 @@ function attack_1()
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "[ ${OUTD} ] [ Type ${hash_type}, Attack 1, Mode single, Device-Type ${TYPE}, Vector-Width ${VECTOR} ] > $msg : ${e_nf}/${cnt} not found, ${e_nm}/${cnt} not matched, ${e_to}/${cnt} timeout"
|
echo "[ ${OUTD} ] [ Type ${hash_type}, Attack 1, Mode single, Device-Type ${TYPE}, Kernel-Type ${KERNEL_TYPE}, Vector-Width ${VECTOR} ] > $msg : ${e_nf}/${cnt} not found, ${e_nm}/${cnt} not matched, ${e_to}/${cnt} timeout"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -853,7 +853,7 @@ function attack_1()
|
|||||||
|
|
||||||
CMD="./${BIN} ${OPTS} -a 1 -m ${hash_type} ${hash_file} ${OUTD}/${hash_type}_dict1 ${OUTD}/${hash_type}_dict2"
|
CMD="./${BIN} ${OPTS} -a 1 -m ${hash_type} ${hash_file} ${OUTD}/${hash_type}_dict1 ${OUTD}/${hash_type}_dict2"
|
||||||
|
|
||||||
echo "> Testing hash type $hash_type with attack mode 1, markov ${MARKOV}, multi 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}, multi hash, Device-Type ${TYPE}, Kernel-Type ${KERNEL_TYPE}, Vector-Width ${VECTOR}." >> "${OUTD}/logfull.txt" 2>> "${OUTD}/logfull.txt"
|
||||||
|
|
||||||
output=$(./${BIN} ${OPTS} -a 1 -m ${hash_type} ${hash_file} ${OUTD}/${hash_type}_dict1 ${OUTD}/${hash_type}_dict2 2>&1)
|
output=$(./${BIN} ${OPTS} -a 1 -m ${hash_type} ${hash_file} ${OUTD}/${hash_type}_dict1 ${OUTD}/${hash_type}_dict2 2>&1)
|
||||||
|
|
||||||
@ -912,7 +912,7 @@ function attack_1()
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "[ ${OUTD} ] [ Type ${hash_type}, Attack 1, Mode multi, Device-Type ${TYPE}, Vector-Width ${VECTOR} ] > $msg : ${e_nf}/${cnt} not found, ${e_nm}/${cnt} not matched, ${e_to}/${cnt} timeout"
|
echo "[ ${OUTD} ] [ Type ${hash_type}, Attack 1, Mode multi, Device-Type ${TYPE}, Kernel-Type ${KERNEL_TYPE}, Vector-Width ${VECTOR} ] > $msg : ${e_nf}/${cnt} not found, ${e_nm}/${cnt} not matched, ${e_to}/${cnt} timeout"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -935,7 +935,7 @@ function attack_3()
|
|||||||
e_nm=0
|
e_nm=0
|
||||||
cnt=0
|
cnt=0
|
||||||
|
|
||||||
echo "> Testing hash type $hash_type with attack mode 3, 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 3, markov ${MARKOV}, single hash, Device-Type ${TYPE}, Kernel-Type ${KERNEL_TYPE}, Vector-Width ${VECTOR}." >> "${OUTD}/logfull.txt" 2>> "${OUTD}/logfull.txt"
|
||||||
|
|
||||||
max=8
|
max=8
|
||||||
|
|
||||||
@ -1086,7 +1086,7 @@ function attack_3()
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "[ ${OUTD} ] [ Type ${hash_type}, Attack 3, Mode single, Device-Type ${TYPE}, Vector-Width ${VECTOR} ] > $msg : ${e_nf}/${cnt} not found, ${e_nm}/${cnt} not matched, ${e_to}/${cnt} timeout"
|
echo "[ ${OUTD} ] [ Type ${hash_type}, Attack 3, Mode single, Device-Type ${TYPE}, Kernel-Type ${KERNEL_TYPE}, Vector-Width ${VECTOR} ] > $msg : ${e_nf}/${cnt} not found, ${e_nm}/${cnt} not matched, ${e_to}/${cnt} timeout"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -1477,7 +1477,7 @@ function attack_3()
|
|||||||
|
|
||||||
CMD="./${BIN} ${OPTS} -a 3 -m ${hash_type} ${increment_charset_opts} ${hash_file} ${mask} "
|
CMD="./${BIN} ${OPTS} -a 3 -m ${hash_type} ${increment_charset_opts} ${hash_file} ${mask} "
|
||||||
|
|
||||||
echo "> Testing hash type $hash_type with attack mode 3, markov ${MARKOV}, multi hash, Device-Type ${TYPE}, vector-width ${VECTOR}." >> "${OUTD}/logfull.txt" 2>> "${OUTD}/logfull.txt"
|
echo "> Testing hash type $hash_type with attack mode 3, markov ${MARKOV}, multi hash, Device-Type ${TYPE}, Kernel-Type ${KERNEL_TYPE}, Vector-Width ${VECTOR}." >> "${OUTD}/logfull.txt" 2>> "${OUTD}/logfull.txt"
|
||||||
|
|
||||||
output=$(./${BIN} ${OPTS} -a 3 -m ${hash_type} ${increment_charset_opts} ${hash_file} ${mask} 2>&1)
|
output=$(./${BIN} ${OPTS} -a 3 -m ${hash_type} ${increment_charset_opts} ${hash_file} ${mask} 2>&1)
|
||||||
|
|
||||||
@ -1530,7 +1530,7 @@ function attack_3()
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "[ ${OUTD} ] [ Type ${hash_type}, Attack 3, Mode multi, Device-Type ${TYPE}, Vector-Width ${VECTOR} ] > $msg : ${e_nf}/${cnt} not found, ${e_nm}/${cnt} not matched, ${e_to}/${cnt} timeout"
|
echo "[ ${OUTD} ] [ Type ${hash_type}, Attack 3, Mode multi, Device-Type ${TYPE}, Kernel-Type ${KERNEL_TYPE}, Vector-Width ${VECTOR} ] > $msg : ${e_nf}/${cnt} not found, ${e_nm}/${cnt} not matched, ${e_to}/${cnt} timeout"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -1553,7 +1553,7 @@ function attack_6()
|
|||||||
e_nm=0
|
e_nm=0
|
||||||
cnt=0
|
cnt=0
|
||||||
|
|
||||||
echo "> Testing hash type $hash_type with attack mode 6, 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 6, markov ${MARKOV}, single hash, Device-Type ${TYPE}, Kernel-Type ${KERNEL_TYPE}, Vector-Width ${VECTOR}." >> "${OUTD}/logfull.txt" 2>> "${OUTD}/logfull.txt"
|
||||||
|
|
||||||
min=1
|
min=1
|
||||||
max=8
|
max=8
|
||||||
@ -1766,7 +1766,7 @@ function attack_6()
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "[ ${OUTD} ] [ Type ${hash_type}, Attack 6, Mode single, Device-Type ${TYPE}, Vector-Width ${VECTOR} ] > $msg : ${e_nf}/${cnt} not found, ${e_nm}/${cnt} not matched, ${e_to}/${cnt} timeout"
|
echo "[ ${OUTD} ] [ Type ${hash_type}, Attack 6, Mode single, Device-Type ${TYPE}, Kernel-Type ${KERNEL_TYPE}, Vector-Width ${VECTOR} ] > $msg : ${e_nf}/${cnt} not found, ${e_nm}/${cnt} not matched, ${e_to}/${cnt} timeout"
|
||||||
|
|
||||||
rm -f "${OUTD}/${hash_type}_dict1_custom"
|
rm -f "${OUTD}/${hash_type}_dict1_custom"
|
||||||
rm -f "${OUTD}/${hash_type}_dict2_custom"
|
rm -f "${OUTD}/${hash_type}_dict2_custom"
|
||||||
@ -1907,7 +1907,7 @@ function attack_6()
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "[ ${OUTD} ] [ Type ${hash_type}, Attack 6, Mode multi, Device-Type ${TYPE}, Vector-Width ${VECTOR} ] > $msg : ${e_nf}/${cnt} not found, ${e_nm}/${cnt} not matched, ${e_to}/${cnt} timeout"
|
echo "[ ${OUTD} ] [ Type ${hash_type}, Attack 6, Mode multi, Device-Type ${TYPE}, Kernel-Type ${KERNEL_TYPE}, Vector-Width ${VECTOR} ] > $msg : ${e_nf}/${cnt} not found, ${e_nm}/${cnt} not matched, ${e_to}/${cnt} timeout"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -1930,7 +1930,7 @@ function attack_7()
|
|||||||
e_nm=0
|
e_nm=0
|
||||||
cnt=0
|
cnt=0
|
||||||
|
|
||||||
echo "> Testing hash type $hash_type with attack mode 7, 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 7, markov ${MARKOV}, single hash, Device-Type ${TYPE}, Kernel-Type ${KERNEL_TYPE}, Vector-Width ${VECTOR}." >> "${OUTD}/logfull.txt" 2>> "${OUTD}/logfull.txt"
|
||||||
|
|
||||||
min=1
|
min=1
|
||||||
max=8
|
max=8
|
||||||
@ -2185,7 +2185,7 @@ function attack_7()
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "[ ${OUTD} ] [ Type ${hash_type}, Attack 7, Mode single, Device-Type ${TYPE}, Vector-Width ${VECTOR} ] > $msg : ${e_nf}/${cnt} not found, ${e_nm}/${cnt} not matched, ${e_to}/${cnt} timeout"
|
echo "[ ${OUTD} ] [ Type ${hash_type}, Attack 7, Mode single, Device-Type ${TYPE}, Kernel-Type ${KERNEL_TYPE}, Vector-Width ${VECTOR} ] > $msg : ${e_nf}/${cnt} not found, ${e_nm}/${cnt} not matched, ${e_to}/${cnt} timeout"
|
||||||
|
|
||||||
rm -f "${OUTD}/${hash_type}_dict1_custom"
|
rm -f "${OUTD}/${hash_type}_dict1_custom"
|
||||||
rm -f "${OUTD}/${hash_type}_dict2_custom"
|
rm -f "${OUTD}/${hash_type}_dict2_custom"
|
||||||
@ -2361,7 +2361,7 @@ function attack_7()
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "[ ${OUTD} ] [ Type ${hash_type}, Attack 7, Mode multi, Device-Type ${TYPE}, Vector-Width ${VECTOR} ] > $msg : ${e_nf}/${cnt} not found, ${e_nm}/${cnt} not matched, ${e_to}/${cnt} timeout"
|
echo "[ ${OUTD} ] [ Type ${hash_type}, Attack 7, Mode multi, Device-Type ${TYPE}, Kernel-Type ${KERNEL_TYPE}, Vector-Width ${VECTOR} ] > $msg : ${e_nf}/${cnt} not found, ${e_nm}/${cnt} not matched, ${e_to}/${cnt} timeout"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -2526,7 +2526,7 @@ function truecrypt_test()
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
if [ ${#CMD} -gt 5 ]; then
|
if [ ${#CMD} -gt 5 ]; then
|
||||||
echo "> Testing hash type $hashType with attack mode 3, markov ${MARKOV}, single hash, Device-Type ${TYPE}, vector-width ${VECTOR}, tcMode ${tcMode}" >> "${OUTD}/logfull.txt" 2>> "${OUTD}/logfull.txt"
|
echo "> Testing hash type $hashType with attack mode 3, markov ${MARKOV}, single hash, Device-Type ${TYPE}, Kernel-Type ${KERNEL_TYPE}, Vector-Width ${VECTOR}, tcMode ${tcMode}" >> "${OUTD}/logfull.txt" 2>> "${OUTD}/logfull.txt"
|
||||||
|
|
||||||
output=$(${CMD} 2>&1)
|
output=$(${CMD} 2>&1)
|
||||||
|
|
||||||
@ -2543,7 +2543,7 @@ function truecrypt_test()
|
|||||||
msg="Error"
|
msg="Error"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "[ ${OUTD} ] [ Type ${hash_type}, Attack 3, Mode single, Device-Type ${TYPE}, Vector-Width ${VECTOR}, tcMode ${tcMode} ] > $msg : ${e_nf}/${cnt} not found"
|
echo "[ ${OUTD} ] [ Type ${hash_type}, Attack 3, Mode single, Device-Type ${TYPE}, Kernel-Type ${KERNEL_TYPE}, Vector-Width ${VECTOR}, tcMode ${tcMode} ] > $msg : ${e_nf}/${cnt} not found"
|
||||||
|
|
||||||
status ${ret}
|
status ${ret}
|
||||||
fi
|
fi
|
||||||
@ -2603,7 +2603,7 @@ function veracrypt_test()
|
|||||||
|
|
||||||
CMD="echo hashca{a..z} | ./${BIN} ${OPTS} -a 0 -m ${hash_type} ${filename}"
|
CMD="echo hashca{a..z} | ./${BIN} ${OPTS} -a 0 -m ${hash_type} ${filename}"
|
||||||
|
|
||||||
echo "> Testing hash type ${hash_type} with attack mode 0, markov ${MARKOV}, single hash, Device-Type ${TYPE}, vector-width ${VECTOR}, cipher ${cipher_cascade}" >> "${OUTD}/logfull.txt" 2>> "${OUTD}/logfull.txt"
|
echo "> Testing hash type ${hash_type} with attack mode 0, markov ${MARKOV}, single hash, Device-Type ${TYPE}, Kernel-Type ${KERNEL_TYPE}, Vector-Width ${VECTOR}, Cipher ${cipher_cascade}" >> "${OUTD}/logfull.txt" 2>> "${OUTD}/logfull.txt"
|
||||||
|
|
||||||
output=$(${CMD} 2>&1)
|
output=$(${CMD} 2>&1)
|
||||||
|
|
||||||
@ -2620,7 +2620,7 @@ function veracrypt_test()
|
|||||||
msg="Error"
|
msg="Error"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "[ ${OUTD} ] [ Type ${hash_type}, Attack 0, Mode single, Device-Type ${TYPE}, Vector-Width ${VECTOR}, Cipher ${cipher_cascade} ] > $msg : ${e_nf}/${cnt} not found"
|
echo "[ ${OUTD} ] [ Type ${hash_type}, Attack 0, Mode single, Device-Type ${TYPE}, Kernel-Type ${KERNEL_TYPE}, Vector-Width ${VECTOR}, Cipher ${cipher_cascade} ] > $msg : ${e_nf}/${cnt} not found"
|
||||||
|
|
||||||
status ${ret}
|
status ${ret}
|
||||||
}
|
}
|
||||||
@ -2729,7 +2729,7 @@ function luks_test()
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
if [ -n "${CMD}" ]; then
|
if [ -n "${CMD}" ]; then
|
||||||
echo "> Testing hash type ${hashType} with attack mode ${attackType}, markov ${MARKOV}, single hash, Device-Type ${TYPE}, vector-width ${VECTOR}, luksMode ${luks_mode}" >> "${OUTD}/logfull.txt" 2>> "${OUTD}/logfull.txt"
|
echo "> Testing hash type ${hashType} with attack mode ${attackType}, markov ${MARKOV}, single hash, Device-Type ${TYPE}, Kernel-Type ${KERNEL_TYPE}, Vector-Width ${VECTOR}, luksMode ${luks_mode}" >> "${OUTD}/logfull.txt" 2>> "${OUTD}/logfull.txt"
|
||||||
|
|
||||||
output=$(${CMD} 2>&1)
|
output=$(${CMD} 2>&1)
|
||||||
ret=${?}
|
ret=${?}
|
||||||
@ -2745,7 +2745,7 @@ function luks_test()
|
|||||||
msg="Error"
|
msg="Error"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "[ ${OUTD} ] [ Type ${hash_type}, Attack ${attackType}, Mode single, Device-Type ${TYPE}, Vector-Width ${VECTOR}, luksMode ${luks_mode} ] > $msg : ${e_nf}/${cnt} not found"
|
echo "[ ${OUTD} ] [ Type ${hash_type}, Attack ${attackType}, Mode single, Device-Type ${TYPE}, Kernel-Type ${KERNEL_TYPE}, Vector-Width ${VECTOR}, luksMode ${luks_mode} ] > $msg : ${e_nf}/${cnt} not found"
|
||||||
|
|
||||||
status ${ret}
|
status ${ret}
|
||||||
fi
|
fi
|
||||||
@ -2829,6 +2829,7 @@ MARKOV="enabled"
|
|||||||
ATTACK=0
|
ATTACK=0
|
||||||
MODE=0
|
MODE=0
|
||||||
TYPE="null"
|
TYPE="null"
|
||||||
|
KERNEL_TYPE="Optimized"
|
||||||
VECTOR="default"
|
VECTOR="default"
|
||||||
HT=0
|
HT=0
|
||||||
PACKAGE=0
|
PACKAGE=0
|
||||||
@ -2959,6 +2960,7 @@ while getopts "V:t:m:a:b:hcpd:x:o:d:D:F:POI:s:" opt; do
|
|||||||
|
|
||||||
"P")
|
"P")
|
||||||
OPTIMIZED=0
|
OPTIMIZED=0
|
||||||
|
KERNEL_TYPE="Pure"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
\?)
|
\?)
|
||||||
|
Loading…
Reference in New Issue
Block a user