1
mirror of https://github.com/hashcat/hashcat synced 2024-12-01 20:18:12 +01:00

-m 11600: additional check for padding attack in case of unsupported coder

This commit is contained in:
philsmd 2017-01-24 16:32:31 +01:00
parent 2845f0e716
commit 2bf49d424c
No known key found for this signature in database
GPG Key ID: 4F25D016D9D6A8AF

View File

@ -11331,11 +11331,14 @@ int seven_zip_parse_hash (u8 *input_buf, u32 input_len, hash_t *hash_buf, MAYBE_
seven_zip->padding_check_full = false;
}
if (data_type > 2)
if (data_type != 0x80)
{
if (margin < 4) // we can't be sure about too many false positives
if (data_type > 2)
{
return (PARSER_SALT_VALUE);
if (margin < 4) // we can't be sure about too many false positives
{
return (PARSER_SALT_VALUE);
}
}
}