From: Jens Steube Date: Fri, 15 Jul 2016 11:30:25 +0000 (+0200) Subject: Fixed a bug where hashcat reported an invalid password for a zero-length password... X-Git-Url: https://www.flypig.org.uk/git/?p=hashcat.git;a=commitdiff_plain;h=62390b9cfa15ef18cdbf48ef5790d399b23e4c76 Fixed a bug where hashcat reported an invalid password for a zero-length password in LM Fixes https://github.com/hashcat/hashcat/issues/434 --- diff --git a/OpenCL/inc_comp_multi_bs.cl b/OpenCL/inc_comp_multi_bs.cl index 6546a97..894416a 100644 --- a/OpenCL/inc_comp_multi_bs.cl +++ b/OpenCL/inc_comp_multi_bs.cl @@ -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); + } } } } diff --git a/OpenCL/inc_comp_single_bs.cl b/OpenCL/inc_comp_single_bs.cl index 2c5e70f..92383d6 100644 --- a/OpenCL/inc_comp_single_bs.cl +++ b/OpenCL/inc_comp_single_bs.cl @@ -1,6 +1,10 @@ -const u32 final_hash_pos = digests_offset + 0; -if (atomic_inc (&hashes_shown[final_hash_pos]) == 0) +if ((il_pos + slice) < il_cnt) { - mark_hash (plains_buf, d_return_buf, salt_pos, 0, final_hash_pos, gid, il_pos + slice); + const u32 final_hash_pos = digests_offset + 0; + + if (atomic_inc (&hashes_shown[final_hash_pos]) == 0) + { + mark_hash (plains_buf, d_return_buf, salt_pos, 0, final_hash_pos, gid, il_pos + slice); + } } diff --git a/docs/changes.txt b/docs/changes.txt index ffac0c9..d0c8e43 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -27,6 +27,7 @@ - Fixed a bug where hashcat crashes in case of a scrypt P setting > 1 - Fixed a bug where hashcat did not correctly use the newly cracked plains whenever --loopback or the induction folder was used - Fixed a bug where hashcat did not correctly remove hashes of type WPA/WPA2 even if present in potfile +- Fixed a bug where hashcat reported an invalid password for a zero-length password in LM * changes v2.01 -> v3.00: