1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 08:08:10 +00:00

Fixed unintentional overwriting of the --quiet option in benchmark and speed-only mode

This commit is contained in:
Jens Steube 2021-08-20 10:41:44 +02:00
parent 50e28ff306
commit 330ad34f17
2 changed files with 7 additions and 2 deletions

View File

@ -27,6 +27,7 @@
- Fixed segfault when a combination of the flags --user and --show is given and a hash was specified directly on the command line
- Fixed syntax check of HAS_VPERM macro in several kernel includes causing invalid error message for AMD GPUs on Windows
- Fixed uninitialized tmps variable in autotune for slow hashes by calling _init and _prepare kernel before calling _loop kernel
- Fixed unintentional overwriting of the --quiet option in benchmark and speed-only mode
##
## Performance

View File

@ -1624,6 +1624,8 @@ int hashcat_session_execute (hashcat_ctx_t *hashcat_ctx)
if (user_options->benchmark == true)
{
const bool quiet_sav = user_options->quiet;
user_options->quiet = true;
if (user_options->hash_mode_chgd == true)
@ -1648,17 +1650,19 @@ int hashcat_session_execute (hashcat_ctx_t *hashcat_ctx)
}
}
user_options->quiet = false;
user_options->quiet = quiet_sav;
}
else
{
const bool quiet_sav = user_options->quiet;
if (user_options->speed_only == true) user_options->quiet = true;
rc_final = outer_loop (hashcat_ctx);
if (rc_final == -1) myabort (hashcat_ctx);
if (user_options->speed_only == true) user_options->quiet = false;
if (user_options->speed_only == true) user_options->quiet = quiet_sav;
}
EVENT (EVENT_OUTERLOOP_FINISHED);