mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-27 08:01:27 +00:00
Merge pull request #992 from philsmd/master
-m 11600: additional check within the parser to avoid loading hashes that produce too many false positives
This commit is contained in:
commit
57a253c3d3
@ -11331,6 +11331,17 @@ int seven_zip_parse_hash (u8 *input_buf, u32 input_len, hash_t *hash_buf, MAYBE_
|
|||||||
seven_zip->padding_check_full = false;
|
seven_zip->padding_check_full = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (data_type != 0x80)
|
||||||
|
{
|
||||||
|
if (data_type > 2)
|
||||||
|
{
|
||||||
|
if (margin < 4) // we can't be sure about too many false positives
|
||||||
|
{
|
||||||
|
return (PARSER_SALT_VALUE);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// real salt
|
// real salt
|
||||||
|
|
||||||
salt->salt_buf[0] = seven_zip->data_buf[0];
|
salt->salt_buf[0] = seven_zip->data_buf[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user