mirror of
https://github.com/hashcat/hashcat.git
synced 2025-02-04 11:52:32 +00:00
Fix bug in -a 1 mode: If left wordlist has less entries than right wordlist then 0x80 was not added
This commit is contained in:
parent
6b0a13d998
commit
57e1191307
@ -2760,7 +2760,35 @@ static void run_copy (hc_device_param_t *device_param, const uint pws_cnt)
|
|||||||
}
|
}
|
||||||
else if (data.attack_kern == ATTACK_KERN_COMBI)
|
else if (data.attack_kern == ATTACK_KERN_COMBI)
|
||||||
{
|
{
|
||||||
if (data.attack_mode == ATTACK_MODE_HYBRID2)
|
if (data.attack_mode == ATTACK_MODE_COMBI)
|
||||||
|
{
|
||||||
|
if (data.combs_mode == COMBINATOR_MODE_BASE_RIGHT)
|
||||||
|
{
|
||||||
|
if (data.opts_type & OPTS_TYPE_PT_ADD01)
|
||||||
|
{
|
||||||
|
for (u32 i = 0; i < pws_cnt; i++)
|
||||||
|
{
|
||||||
|
const u32 pw_len = device_param->pws_buf[i].pw_len;
|
||||||
|
|
||||||
|
u8 *ptr = (u8 *) device_param->pws_buf[i].i;
|
||||||
|
|
||||||
|
ptr[pw_len] = 0x01;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (data.opts_type & OPTS_TYPE_PT_ADD80)
|
||||||
|
{
|
||||||
|
for (u32 i = 0; i < pws_cnt; i++)
|
||||||
|
{
|
||||||
|
const u32 pw_len = device_param->pws_buf[i].pw_len;
|
||||||
|
|
||||||
|
u8 *ptr = (u8 *) device_param->pws_buf[i].i;
|
||||||
|
|
||||||
|
ptr[pw_len] = 0x80;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (data.attack_mode == ATTACK_MODE_HYBRID2)
|
||||||
{
|
{
|
||||||
if (data.opts_type & OPTS_TYPE_PT_ADD01)
|
if (data.opts_type & OPTS_TYPE_PT_ADD01)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user