1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-23 08:38:09 +00:00

Reset status to INIT after innerloop iteration

This commit is contained in:
jsteube 2016-10-04 23:21:10 +02:00
parent dab40d2dd5
commit 5b2b00ed7d
2 changed files with 7 additions and 2 deletions

View File

@ -139,6 +139,8 @@ static int inner2_loop (hashcat_ctx_t *hashcat_ctx)
status_ctx->run_thread_level1 = true;
status_ctx->run_thread_level2 = true;
status_ctx->devices_status = STATUS_INIT;
logfile_generate_subid (logfile_ctx);
logfile_sub_msg ("START");

View File

@ -875,11 +875,14 @@ void status_display (hashcat_ctx_t *hashcat_ctx)
if (device_param->skipped) continue;
if (device_param->outerloop_left == 0) continue; // not ready
if (device_param->innerloop_left == 0) continue;
const u32 outerloop_first = 0;
const u32 outerloop_last = (device_param->outerloop_left) ? device_param->outerloop_left - 1 : 0;
const u32 outerloop_last = device_param->outerloop_left - 1;
const u32 innerloop_first = 0;
const u32 innerloop_last = (device_param->innerloop_left) ? device_param->innerloop_left - 1 : 0;
const u32 innerloop_last = device_param->innerloop_left - 1;
plain_t plain1 = { 0, 0, 0, outerloop_first, innerloop_first };
plain_t plain2 = { 0, 0, 0, outerloop_last, innerloop_last };