mirror of
https://github.com/hashcat/hashcat
synced 2024-11-20 23:27:31 +01:00
Fix test script for updated max password length of -m 9700 and -m 9800
This commit is contained in:
parent
a53d9e09de
commit
b9a1e84093
@ -3545,7 +3545,7 @@ sub passthrough
|
|||||||
|
|
||||||
$tmp_hash = gen_hash ($mode, $word_buf, substr ($salt_buf, 0, $salt_len));
|
$tmp_hash = gen_hash ($mode, $word_buf, substr ($salt_buf, 0, $salt_len));
|
||||||
}
|
}
|
||||||
elsif ($mode == 9400 || $mode == 9500 || $mode == 9600 || $mode == 9700 || $mode == 9800)
|
elsif ($mode == 9400 || $mode == 9500 || $mode == 9600)
|
||||||
{
|
{
|
||||||
next if length ($word_buf) > 19;
|
next if length ($word_buf) > 19;
|
||||||
|
|
||||||
@ -3553,6 +3553,14 @@ sub passthrough
|
|||||||
|
|
||||||
$tmp_hash = gen_hash ($mode, $word_buf, substr ($salt_buf, 0, $salt_len));
|
$tmp_hash = gen_hash ($mode, $word_buf, substr ($salt_buf, 0, $salt_len));
|
||||||
}
|
}
|
||||||
|
elsif ($mode == 9700 || $mode == 9800)
|
||||||
|
{
|
||||||
|
next if length ($word_buf) > 15;
|
||||||
|
|
||||||
|
my $salt_len = 32;
|
||||||
|
|
||||||
|
$tmp_hash = gen_hash ($mode, $word_buf, substr ($salt_buf, 0, $salt_len));
|
||||||
|
}
|
||||||
elsif ($mode == 10100)
|
elsif ($mode == 10100)
|
||||||
{
|
{
|
||||||
$tmp_hash = gen_hash ($mode, $word_buf, substr ($salt_buf, 0, 32));
|
$tmp_hash = gen_hash ($mode, $word_buf, substr ($salt_buf, 0, 32));
|
||||||
@ -4326,7 +4334,7 @@ sub single
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elsif ($mode == 9400 || $mode == 9500 || $mode == 9600 || $mode == 9700 || $mode == 9800)
|
elsif ($mode == 9400 || $mode == 9500 || $mode == 9600)
|
||||||
{
|
{
|
||||||
my $salt_len = 32;
|
my $salt_len = 32;
|
||||||
|
|
||||||
@ -4342,6 +4350,22 @@ sub single
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
elsif ($mode == 9700 || $mode == 9800)
|
||||||
|
{
|
||||||
|
my $salt_len = 32;
|
||||||
|
|
||||||
|
for (my $i = 1; $i < 16; $i++)
|
||||||
|
{
|
||||||
|
if ($len != 0)
|
||||||
|
{
|
||||||
|
rnd ($mode, $len, $salt_len);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
rnd ($mode, $i, $salt_len);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
elsif ($mode == 10100)
|
elsif ($mode == 10100)
|
||||||
{
|
{
|
||||||
for (my $i = 1; $i < 32; $i++)
|
for (my $i = 1; $i < 32; $i++)
|
||||||
|
@ -24,7 +24,7 @@ NEVER_CRACK="11600 14900"
|
|||||||
|
|
||||||
SLOW_ALGOS="400 500 501 1600 1800 2100 2500 3200 5200 5800 6211 6212 6213 6221 6222 6223 6231 6232 6233 6241 6242 6243 6251 6261 6271 6281 6300 6400 6500 6600 6700 6800 7100 7200 7400 7900 8200 8800 8900 9000 9100 9200 9300 9400 9500 9600 10000 10300 10500 10700 10900 11300 11600 11900 12000 12001 12100 12200 12300 12400 12500 12700 12800 12900 13000 13200 13400 13600 14600 14700 14800 15100 15200 15300 15600 15700 15800"
|
SLOW_ALGOS="400 500 501 1600 1800 2100 2500 3200 5200 5800 6211 6212 6213 6221 6222 6223 6231 6232 6233 6241 6242 6243 6251 6261 6271 6281 6300 6400 6500 6600 6700 6800 7100 7200 7400 7900 8200 8800 8900 9000 9100 9200 9300 9400 9500 9600 10000 10300 10500 10700 10900 11300 11600 11900 12000 12001 12100 12200 12300 12400 12500 12700 12800 12900 13000 13200 13400 13600 14600 14700 14800 15100 15200 15300 15600 15700 15800"
|
||||||
|
|
||||||
OPTS="--quiet --force --potfile-disable --runtime 400 --gpu-temp-disable --weak-hash-threshold=0 "
|
OPTS="--quiet --force --potfile-disable --runtime 400 --gpu-temp-disable --weak-hash-threshold=0 -O"
|
||||||
|
|
||||||
OUTD="test_$(date +%s)"
|
OUTD="test_$(date +%s)"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user