Fix segfault in updated parser for -m 19700. To reproduce one need to trigger hashcat hash-mode autodetection: ./hashcat /etc/shadow

pull/3017/head
Jens Steube 3 years ago
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…
Cancel
Save