1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-02-13 08:02:04 +00:00

corrected ASCII plaintext check from >=20 to >=0x20

This commit is contained in:
Your Name 2023-03-07 21:53:11 +01:00
parent 4fe68b0d4f
commit b01f4e5c2e
2 changed files with 3 additions and 3 deletions

View File

@ -364,7 +364,7 @@ KERNEL_FQ void m25400_comp (KERN_ATTR_TMPS_ESALT (pdf14_tmp_t, pdf_t))
// we don't use the user-password in the attack now (as we don't need it), // we don't use the user-password in the attack now (as we don't need it),
// however we could use it in the comparison of the decrypted o-value, // however we could use it in the comparison of the decrypted o-value,
// yet it may make this attack a bit more fragile, as now we just check for ASCII // yet it may make this attack a bit more fragile, as now we just check for ASCII
if ((u8OutBufPtr[i] >= 20 && u8OutBufPtr[i] <= 0x7e) || if ((u8OutBufPtr[i] >= 0x20 && u8OutBufPtr[i] <= 0x7e) ||
(u8OutBufPtr[i] == u8OutPadPtr[i_padding])) (u8OutBufPtr[i] == u8OutPadPtr[i_padding]))
{ {
if (u8OutBufPtr[i] == u8OutPadPtr[i_padding]) if (u8OutBufPtr[i] == u8OutPadPtr[i_padding])
@ -374,7 +374,7 @@ KERNEL_FQ void m25400_comp (KERN_ATTR_TMPS_ESALT (pdf14_tmp_t, pdf_t))
} }
else else
{ {
if (u8OutBufPtr[i] >= 20 && u8OutBufPtr[i] <= 0x7e) if (u8OutBufPtr[i] >= 0x20 && u8OutBufPtr[i] <= 0x7e)
{ {
//printf("correct ASCII byte[%d]=0x%02x\n", i, u8OutBufPtr[i]); //printf("correct ASCII byte[%d]=0x%02x\n", i, u8OutBufPtr[i]);
} }

View File

@ -376,7 +376,7 @@ KERNEL_FQ void m26610_comp (KERN_ATTR_TMPS_ESALT (pbkdf2_sha256_tmp_t, pbkdf2_sh
for(int i=0;i<16;i++) for(int i=0;i<16;i++)
{ {
if(u8OutBufPtr[i] >=20 && u8OutBufPtr[i] <= 0x7e) { if(u8OutBufPtr[i] >=0x20 && u8OutBufPtr[i] <= 0x7e) {
//if ((gid == 0) && (lid == 0)) printf("correct ASCII byte[%d]=0x%02x\n", i, u8OutBufPtr[i]); //if ((gid == 0) && (lid == 0)) printf("correct ASCII byte[%d]=0x%02x\n", i, u8OutBufPtr[i]);
} }
else { else {