mirror of
https://github.com/hashcat/hashcat.git
synced 2025-02-22 04:22:13 +00:00
Fix segfault in updated parser for -m 19700. To reproduce one need to trigger hashcat hash-mode autodetection: ./hashcat /etc/shadow
This commit is contained in:
parent
7e9e00a649
commit
b8b61894df
@ -123,6 +123,11 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
||||
const char *usr_start = line_buf + strlen(SIGNATURE_KRB5TGS);
|
||||
char *usr_end = strchr ((const char *) usr_start, '$');
|
||||
|
||||
if (usr_end == NULL)
|
||||
{
|
||||
return (PARSER_SEPARATOR_UNMATCHED);
|
||||
}
|
||||
|
||||
if (*(usr_end+1) == '$'){
|
||||
is_machine_account = 1;
|
||||
usr_end++;
|
||||
|
Loading…
Reference in New Issue
Block a user