mirror of
https://github.com/hashcat/hashcat.git
synced 2025-08-02 03:48:16 +00:00
Merge branch 'GetRidOfCUDA' of https://github.com/hashcat/oclHashcat into GetRidOfCUDA
This commit is contained in:
commit
cb6247956f
@ -9622,7 +9622,8 @@ int netscreen_parse_hash (char *input_buf, uint input_len, hash_t *hash_buf)
|
|||||||
|
|
||||||
salt_len = parse_and_store_salt (salt_buf_ptr, salt_buf, salt_len);
|
salt_len = parse_and_store_salt (salt_buf_ptr, salt_buf, salt_len);
|
||||||
|
|
||||||
if (salt_len == UINT_MAX) return (PARSER_SALT_LENGTH);
|
// max. salt length: salt_buf[32] => 32 - 22 (":Administration Tools:") = 10
|
||||||
|
if (salt_len > 10) return (PARSER_SALT_LENGTH);
|
||||||
|
|
||||||
salt->salt_len = salt_len;
|
salt->salt_len = salt_len;
|
||||||
|
|
||||||
|
@ -2525,7 +2525,7 @@ sub passthrough
|
|||||||
}
|
}
|
||||||
elsif ($mode == 22)
|
elsif ($mode == 22)
|
||||||
{
|
{
|
||||||
my $salt_len = get_random_num (1, 15);
|
my $salt_len = get_random_num (1, 11);
|
||||||
|
|
||||||
$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));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user