Fixed a bug where hashcat reported an invalid password for a zero-length password in LM

Fixes https://github.com/hashcat/hashcat/issues/434
This commit is contained in:
Jens Steube
2016-07-15 13:30:25 +02:00
parent 2167df6915
commit 62390b9cfa
3 changed files with 15 additions and 7 deletions

View File

@@ -22,11 +22,14 @@ if (check (digest_tp,
if (digest_pos != -1)
{
const u32 final_hash_pos = digests_offset + digest_pos;
if (atomic_inc (&hashes_shown[final_hash_pos]) == 0)
if ((il_pos + slice) < il_cnt)
{
mark_hash (plains_buf, d_return_buf, salt_pos, digest_pos, final_hash_pos, gid, il_pos + slice);
const u32 final_hash_pos = digests_offset + digest_pos;
if (atomic_inc (&hashes_shown[final_hash_pos]) == 0)
{
mark_hash (plains_buf, d_return_buf, salt_pos, digest_pos, final_hash_pos, gid, il_pos + slice);
}
}
}
}