Improve handling of MAX_CUT_TRIES

pull/604/merge
jsteube 8 years ago
parent daeb5f66ac
commit e777c25a67

@ -158,6 +158,8 @@ static int outfile_remove (hashcat_ctx_t *hashcat_ctx)
{
if (line_buf[i] != separator) continue;
iter--;
int parser_status = PARSER_OK;
if ((hash_mode != 2500) && (hash_mode != 6800))
@ -269,8 +271,6 @@ static int outfile_remove (hashcat_ctx_t *hashcat_ctx)
if (found) break;
if (status_ctx->devices_status == STATUS_CRACKED) break;
iter--;
}
if (status_ctx->devices_status == STATUS_CRACKED) break;

@ -321,10 +321,12 @@ int potfile_remove_parse (hashcat_ctx_t *hashcat_ctx)
int iter = MAX_CUT_TRIES;
for (int i = line_len - 1; i && iter; i--, iter--, line_len--)
for (int i = line_len - 1; i && iter; i--, line_len--)
{
if (line_buf[i] != ':') continue;
iter--;
if (hashconfig->is_salted)
{
memset (hash_buf.salt, 0, sizeof (salt_t));

Loading…
Cancel
Save