Skip to content

Commit

Permalink
Wordlist mode: With PerRuleStats, handle aborts during batch padding
Browse files Browse the repository at this point in the history
  • Loading branch information
solardiz committed Jun 5, 2022
1 parent 41c4bf9 commit d8f753a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/wordlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -1400,7 +1400,8 @@ void do_wordlist_crack(struct db_main *db, const char *name, int rules)
if (rules > 1 && prerule) {
unsigned long long p = status.cands, fake_p = 0;
if (!(options.flags & FLG_STDOUT)) do {
crk_direct_process_key("injected wrong password");
if (crk_direct_process_key("injected wrong password"))
goto done;
fake_p++;
} while (p == status.cands);
unsigned int g = status.guess_count - prev_g;
Expand Down Expand Up @@ -1450,6 +1451,7 @@ void do_wordlist_crack(struct db_main *db, const char *name, int rules)
if (pipe_input)
goto GRAB_NEXT_PIPE_LOAD;

done:
crk_done();
rec_done(event_abort || (status.pass && db->salts));

Expand Down

0 comments on commit d8f753a

Please sign in to comment.