1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 16:18:09 +00:00

Correctly check -j / -k's values

Check as ':' instead of NULL, as : is the default value of rule_buf_l and rule_buf_r
This commit is contained in:
PenguinKeeper7 2023-09-04 20:34:56 +01:00
parent 4d31e4d6ce
commit 0c65c03397

View File

@ -100,8 +100,8 @@ void dictstat_read (hashcat_ctx_t *hashcat_ctx)
if (hashconfig->dictstat_disable == true) return; if (hashconfig->dictstat_disable == true) return;
if (user_options->rule_buf_l != NULL) return; if (*user_options->rule_buf_l != ':') return;
if (user_options->rule_buf_r != NULL) return; if (*user_options->rule_buf_r != ':') return;
HCFILE fp; HCFILE fp;
@ -192,8 +192,8 @@ int dictstat_write (hashcat_ctx_t *hashcat_ctx)
if (hashconfig->dictstat_disable == true) return 0; if (hashconfig->dictstat_disable == true) return 0;
if (user_options->rule_buf_l != NULL) return 0; if (*user_options->rule_buf_l != ':') return 0;
if (user_options->rule_buf_r != NULL) return 0; if (*user_options->rule_buf_r != ':') return 0;
HCFILE fp; HCFILE fp;