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

Add -V all in test.sh

This commit is contained in:
Gabriele 'matrix' Gristina 2016-01-31 18:45:05 +01:00
parent 55d4904dd3
commit ec2f78d6dd

View File

@ -13,6 +13,8 @@ HASH_TYPES="0 10 11 12 20 21 22 23 30 40 50 60 100 101 110 111 112 120 121 122 1
ATTACK_MODES="0 1 3 6 7"
VECTOR_WIDTHS="1 2 4 8"
MATCH_PASS_ONLY="2500 5300 5400 6600 6800 8200"
HASHFILE_ONLY="2500"
@ -1598,6 +1600,8 @@ while getopts "V:T:t:m:a:b:hcpd:x:o:" opt; do
elif [ ${OPTARG} == "8" ]; then
OPTS="${OPTS} --opencl-vector-width 8"
VECTOR=8
elif [ ${OPTARG} == "all" ]; then
VECTOR="all"
else
usage
fi
@ -1702,7 +1706,7 @@ while getopts "V:T:t:m:a:b:hcpd:x:o:" opt; do
done
if [ ${VECTOR} -eq 0 ]; then
if [ "${VECTOR}" == "0" ]; then
VECTOR=2
OPTS="${OPTS} --opencl-vector-width 2"
fi
@ -1821,12 +1825,22 @@ if [ "${PACKAGE}" -eq 0 -o -z "${PACKAGE_FOLDER}" ]; then
IS_SLOW=0
fi
OPTS_OLD=${OPTS}
VECTOR_OLD=${VECTOR}
for CUR_WIDTH in $(echo $VECTOR_WIDTHS); do
if [ "${VECTOR_OLD}" == "all" ] || [ "${VECTOR_OLD}" == "${CUR_WIDTH}" ]; then
VECTOR=${CUR_WIDTH}
OPTS="${OPTS_OLD} --opencl-vector-width ${VECTOR}"
if [[ ${IS_SLOW} -eq 1 ]]; then
# run attack mode 0 (stdin)
if [[ ${ATTACK} -eq 65535 ]] || [[ ${ATTACK} -eq 0 ]]; then attack_0; fi
else
# run attack mode 0 (stdin)
if [[ ${ATTACK} -eq 65535 ]] || [[ ${ATTACK} -eq 0 ]]; then attack_0; fi
@ -1841,9 +1855,11 @@ if [ "${PACKAGE}" -eq 0 -o -z "${PACKAGE_FOLDER}" ]; then
# run attack mode 7 (mask+dict)
if [[ ${ATTACK} -eq 65535 ]] || [[ ${ATTACK} -eq 7 ]]; then attack_7; fi
fi
fi
fi
fi
done
fi
done
else