mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-24 07:28:10 +00:00
Merge pull request #1986 from ZerBea/master
prepare new hashline / verify SAE
This commit is contained in:
commit
4579ddb5b2
@ -463,7 +463,7 @@ u32 module_deep_comp_kernel (MAYBE_UNUSED const hashes_t *hashes, MAYBE_UNUSED c
|
|||||||
{
|
{
|
||||||
return KERN_RUN_AUX2;
|
return KERN_RUN_AUX2;
|
||||||
}
|
}
|
||||||
else if (wpa_eapol->keyver == 3)
|
else if ((wpa_eapol->keyver == 0) || (wpa_eapol->keyver == 3))
|
||||||
{
|
{
|
||||||
return KERN_RUN_AUX3;
|
return KERN_RUN_AUX3;
|
||||||
}
|
}
|
||||||
@ -509,7 +509,7 @@ bool module_potfile_custom_check (MAYBE_UNUSED const hashconfig_t *hashconfig, M
|
|||||||
{
|
{
|
||||||
m02501_aux = m02501_aux2;
|
m02501_aux = m02501_aux2;
|
||||||
}
|
}
|
||||||
else if (wpa_eapol_db->keyver == 3)
|
else if ((wpa_eapol_db->keyver == 0) || (wpa_eapol_db->keyver == 3))
|
||||||
{
|
{
|
||||||
m02501_aux = m02501_aux3;
|
m02501_aux = m02501_aux3;
|
||||||
}
|
}
|
||||||
@ -629,7 +629,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
|||||||
|
|
||||||
wpa_eapol->keyver = in.keyver;
|
wpa_eapol->keyver = in.keyver;
|
||||||
|
|
||||||
if ((wpa_eapol->keyver != 1) && (wpa_eapol->keyver != 2) && (wpa_eapol->keyver != 3)) return (PARSER_SALT_VALUE);
|
if ((wpa_eapol->keyver != 0) && (wpa_eapol->keyver != 1) && (wpa_eapol->keyver != 2) && (wpa_eapol->keyver != 3)) return (PARSER_SALT_VALUE);
|
||||||
|
|
||||||
u8 *pke_ptr = (u8 *) wpa_eapol->pke;
|
u8 *pke_ptr = (u8 *) wpa_eapol->pke;
|
||||||
|
|
||||||
@ -663,7 +663,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
|||||||
memcpy (pke_ptr + 67, in.nonce_ap, 32);
|
memcpy (pke_ptr + 67, in.nonce_ap, 32);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (wpa_eapol->keyver == 3)
|
else if ((wpa_eapol->keyver == 0) || (wpa_eapol->keyver == 3))
|
||||||
{
|
{
|
||||||
pke_ptr[0] = 1;
|
pke_ptr[0] = 1;
|
||||||
pke_ptr[1] = 0;
|
pke_ptr[1] = 0;
|
||||||
@ -745,7 +745,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
|||||||
wpa_eapol->eapol[i] = byte_swap_32 (wpa_eapol->eapol[i]);
|
wpa_eapol->eapol[i] = byte_swap_32 (wpa_eapol->eapol[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (wpa_eapol->keyver == 3)
|
else if ((wpa_eapol->keyver == 0) || (wpa_eapol->keyver == 3))
|
||||||
{
|
{
|
||||||
// nothing to do
|
// nothing to do
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user