mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-26 09:58:16 +00:00
Merge pull request #275 from philsmd/master
fixed some parser checks to avoid crashes (-m 5300/5400)
This commit is contained in:
commit
ee315fb8a1
@ -163,6 +163,10 @@ Type.: Bug
|
|||||||
File.: Host
|
File.: Host
|
||||||
Desc.: Fixed some checks in the parser of -m 1711 = SSHA-512(Base64), LDAP {SSHA512}
|
Desc.: Fixed some checks in the parser of -m 1711 = SSHA-512(Base64), LDAP {SSHA512}
|
||||||
|
|
||||||
|
Type.: Bug
|
||||||
|
File.: Host
|
||||||
|
Desc.: Fixed some checks in the parser of -m 5300 = IKE-PSK MD5 and -m 5400 = IKE-PSK SHA1
|
||||||
|
|
||||||
* changes v2.00 -> v2.01:
|
* changes v2.00 -> v2.01:
|
||||||
|
|
||||||
Type.: Bug
|
Type.: Bug
|
||||||
|
@ -12195,6 +12195,8 @@ int ikepsk_md5_parse_hash (char *input_buf, uint input_len, hash_t *hash_buf)
|
|||||||
|
|
||||||
in_off[0] = strtok (input_buf, ":");
|
in_off[0] = strtok (input_buf, ":");
|
||||||
|
|
||||||
|
if (in_off[0] == NULL) return (PARSER_SEPARATOR_UNMATCHED);
|
||||||
|
|
||||||
in_len[0] = strlen (in_off[0]);
|
in_len[0] = strlen (in_off[0]);
|
||||||
|
|
||||||
size_t i;
|
size_t i;
|
||||||
@ -12280,6 +12282,8 @@ int ikepsk_sha1_parse_hash (char *input_buf, uint input_len, hash_t *hash_buf)
|
|||||||
|
|
||||||
in_off[0] = strtok (input_buf, ":");
|
in_off[0] = strtok (input_buf, ":");
|
||||||
|
|
||||||
|
if (in_off[0] == NULL) return (PARSER_SEPARATOR_UNMATCHED);
|
||||||
|
|
||||||
in_len[0] = strlen (in_off[0]);
|
in_len[0] = strlen (in_off[0]);
|
||||||
|
|
||||||
size_t i;
|
size_t i;
|
||||||
|
Loading…
Reference in New Issue
Block a user