1
mirror of https://github.com/hashcat/hashcat synced 2024-10-04 21:54:45 +02:00

Sanity: Added sanity check to disallow --loopback in combination with --runtime

This commit is contained in:
jsteube 2017-01-05 22:46:34 +01:00
parent 038b915e2d
commit 0fe6db6839
2 changed files with 8 additions and 0 deletions

View File

@ -62,6 +62,7 @@
- Potfile: In v3.10 already, the default potfile suffix changed but the note about was missing. The "hashcat.pot" became "hashcat.potfile"
- Potfile: Added old potfile detection, show warning message
- Sanity: Added sanity check to disallow --speed-only in combination with -i
- Sanity: Added sanity check to disallow --loopback in combination with --runtime
- Threads: Replaced all calls to ctime() with ctime_r() to ensure thread safety
- Threads: Replaced all calls to strerror() with %m printf() GNU extension to ensure thread safety

View File

@ -393,6 +393,13 @@ int user_options_sanity (hashcat_ctx_t *hashcat_ctx)
return -1;
}
if (user_options->runtime_chgd == true && user_options->loopback == true)
{
event_log_error (hashcat_ctx, "Runtime-Limit is not allowed in combination with --loopback");
return -1;
}
if (user_options->hash_mode > 99999)
{
event_log_error (hashcat_ctx, "Invalid hash-type specified");