mirror of
https://github.com/hashcat/hashcat.git
synced 2025-05-09 10:28:48 +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);
|
const char *usr_start = line_buf + strlen(SIGNATURE_KRB5TGS);
|
||||||
char *usr_end = strchr ((const char *) usr_start, '$');
|
char *usr_end = strchr ((const char *) usr_start, '$');
|
||||||
|
|
||||||
|
if (usr_end == NULL)
|
||||||
|
{
|
||||||
|
return (PARSER_SEPARATOR_UNMATCHED);
|
||||||
|
}
|
||||||
|
|
||||||
if (*(usr_end+1) == '$'){
|
if (*(usr_end+1) == '$'){
|
||||||
is_machine_account = 1;
|
is_machine_account = 1;
|
||||||
usr_end++;
|
usr_end++;
|
||||||
|
Loading…
Reference in New Issue
Block a user