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

pull/2543/head
Jens Steube 4 years ago
parent 62a7ae4075
commit a1b5af4433

@ -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

@ -154,6 +154,17 @@ int build_plain (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, pl
const u64 off = device_param->innerloop_pos + il_pos;
if (hashconfig->opti_type & OPTI_TYPE_OPTIMIZED_KERNEL)
{
if ((user_options->rp_files_cnt == 0) || (user_options->rp_gen == 0))
{
for (int i = 0; i < 14; i++)
{
plain_buf[i] = pw.i[i];
}
plain_len = pw.pw_len;
}
else
{
for (int i = 0; i < 8; i++)
{
@ -162,6 +173,7 @@ int build_plain (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, pl
plain_len = apply_rules_optimized (straight_ctx->kernel_rules_buf[off].cmds, &plain_buf[0], &plain_buf[4], pw.pw_len);
}
}
else
{
for (int i = 0; i < 64; i++)

Loading…
Cancel
Save