1
mirror of https://github.com/hashcat/hashcat synced 2024-11-02 20:39:22 +01:00

Fixed password reassembling for cracked hashes on host for slow hashes in optimized mode that are longer than 32 characters

This commit is contained in:
Jens Steube 2020-08-30 15:45:40 +02:00
parent 62a7ae4075
commit a1b5af4433
2 changed files with 17 additions and 4 deletions

View File

@ -19,6 +19,7 @@
- Fixed race condition resulting in out of memory error on startup if multiple hashcat instances are started at the same time
- Fixed unexpected non-unique salts in multi-hash cracking in Bitcoin/Litecoin wallet.dat module which lead to false negatives
- Fixed rare case of misalignment of the status prompt when other user warnings are shown within the hashcat output
- Fixed password reassembling for cracked hashes on host for slow hashes in optimized mode that are longer than 32 characters
##
## Improvements

View File

@ -155,12 +155,24 @@ int build_plain (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, pl
if (hashconfig->opti_type & OPTI_TYPE_OPTIMIZED_KERNEL)
{
for (int i = 0; i < 8; i++)
if ((user_options->rp_files_cnt == 0) || (user_options->rp_gen == 0))
{
plain_buf[i] = pw.i[i];
}
for (int i = 0; i < 14; i++)
{
plain_buf[i] = pw.i[i];
}
plain_len = apply_rules_optimized (straight_ctx->kernel_rules_buf[off].cmds, &plain_buf[0], &plain_buf[4], pw.pw_len);
plain_len = pw.pw_len;
}
else
{
for (int i = 0; i < 8; i++)
{
plain_buf[i] = pw.i[i];
}
plain_len = apply_rules_optimized (straight_ctx->kernel_rules_buf[off].cmds, &plain_buf[0], &plain_buf[4], pw.pw_len);
}
}
else
{