mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-22 08:08:10 +00:00
Remove hash-mode check in hashcat.sh to reduce complexity of adding new hash-modes at a very low cost
This commit is contained in:
parent
1e31b3b271
commit
fbab8ebb1a
@ -176,7 +176,6 @@ _hashcat ()
|
|||||||
{
|
{
|
||||||
local VERSION=5.1.0
|
local VERSION=5.1.0
|
||||||
|
|
||||||
local HASH_MODES="0 10 11 12 20 21 22 23 30 40 50 60 100 101 110 111 112 120 121 122 124 130 131 132 133 140 141 150 160 200 300 400 500 501 600 900 1000 1100 1400 1410 1411 1420 1421 1430 1440 1441 1450 1460 1500 1600 1700 1710 1711 1720 1722 1730 1731 1740 1750 1760 1800 2100 2400 2410 2500 2501 2600 2611 2612 2711 2811 3000 3100 3200 3710 3711 3800 3910 4010 4110 4300 4400 4500 4520 4521 4522 4700 4800 4900 5100 5200 5300 5400 5500 5600 5700 5800 6000 6100 6211 6212 6213 6221 6222 6223 6231 6232 6233 6241 6242 6243 6300 6400 6500 6600 6700 6800 6900 7000 7100 7200 7300 7400 7500 7700 7800 7900 8000 8100 8200 8300 8400 8500 8600 8700 8800 8900 9000 9100 9200 9300 9400 9500 9600 9700 9710 9720 9800 9810 9820 9900 10000 10100 10200 10300 10400 10410 10420 10500 10600 10700 10800 10900 11000 11100 11200 11300 11400 11500 11600 11700 11800 11850 11860 11900 12000 12001 12100 12200 12300 12400 12500 12600 12700 12800 12900 13000 13100 13200 13300 13400 13500 13600 13800 13900 14000 14100 14700 14800 14900 15000 15100 15200 15300 15400 15500 15600 15700 15900 16000 16100 16200 16300 16400 16500 16600 16700 16800 16801 16900 17300 17400 17500 17600 17700 17800 17900 18000 18100 18200 18300 18400 18500 18600"
|
|
||||||
local ATTACK_MODES="0 1 3 6 7"
|
local ATTACK_MODES="0 1 3 6 7"
|
||||||
local HCCAPX_MESSAGE_PAIRS="0 1 2 3 4 5"
|
local HCCAPX_MESSAGE_PAIRS="0 1 2 3 4 5"
|
||||||
local OUTFILE_FORMATS="1 2 3 4 5 6 7 8 9 10 11 12 13 14 15"
|
local OUTFILE_FORMATS="1 2 3 4 5 6 7 8 9 10 11 12 13 14 15"
|
||||||
@ -214,11 +213,6 @@ _hashcat ()
|
|||||||
|
|
||||||
case "${prev}" in
|
case "${prev}" in
|
||||||
|
|
||||||
-m|--hash-type)
|
|
||||||
COMPREPLY=($(compgen -W "${HASH_MODES}" -- ${cur}))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
|
|
||||||
-a|--attack-mode)
|
-a|--attack-mode)
|
||||||
COMPREPLY=($(compgen -W "${ATTACK_MODES}" -- ${cur}))
|
COMPREPLY=($(compgen -W "${ATTACK_MODES}" -- ${cur}))
|
||||||
return 0
|
return 0
|
||||||
@ -450,12 +444,6 @@ _hashcat ()
|
|||||||
|
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
|
|
||||||
-m*)
|
|
||||||
local hash_modes_var="$(echo -n "-m ${HASH_MODES}" | sed 's/ / -m/g')"
|
|
||||||
COMPREPLY=($(compgen -W "${hash_modes_var}" -- ${cur}))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
|
|
||||||
-a*)
|
-a*)
|
||||||
local attack_modes_var="$(echo -n "-a ${ATTACK_MODES}" | sed 's/ / -a/g')"
|
local attack_modes_var="$(echo -n "-a ${ATTACK_MODES}" | sed 's/ / -a/g')"
|
||||||
COMPREPLY=($(compgen -W "${attack_modes_var}" -- ${cur}))
|
COMPREPLY=($(compgen -W "${attack_modes_var}" -- ${cur}))
|
||||||
|
Loading…
Reference in New Issue
Block a user