mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-24 23:48:39 +00:00
Also check existence of rules selected from user using -r on startup
This commit is contained in:
parent
ac5d274845
commit
d4fdb4f7a7
@ -1344,6 +1344,18 @@ int user_options_check_files (hashcat_ctx_t *hashcat_ctx)
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < (int) user_options->rp_files_cnt; i++)
|
||||
{
|
||||
char *rp_file = user_options->rp_files[i];
|
||||
|
||||
if (hc_path_exist (rp_file) == false)
|
||||
{
|
||||
event_log_error (hashcat_ctx, "%s: %m", rp_file);
|
||||
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (user_options->attack_mode == ATTACK_MODE_COMBI)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user