mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-22 08:08:10 +00:00
Fix endianess of MIC in -m 22000 and -m 22001 outfile format
This commit is contained in:
parent
3561e7b8d7
commit
424a6ee8e9
@ -1202,10 +1202,10 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
||||
}
|
||||
else if (wpa->type == 2)
|
||||
{
|
||||
u32_to_hex (wpa->keymic[0], (u8 *) line_buf + line_len); line_len += 8;
|
||||
u32_to_hex (wpa->keymic[1], (u8 *) line_buf + line_len); line_len += 8;
|
||||
u32_to_hex (wpa->keymic[2], (u8 *) line_buf + line_len); line_len += 8;
|
||||
u32_to_hex (wpa->keymic[3], (u8 *) line_buf + line_len); line_len += 8;
|
||||
u32_to_hex (byte_swap_32 (wpa->keymic[0]), (u8 *) line_buf + line_len); line_len += 8;
|
||||
u32_to_hex (byte_swap_32 (wpa->keymic[1]), (u8 *) line_buf + line_len); line_len += 8;
|
||||
u32_to_hex (byte_swap_32 (wpa->keymic[2]), (u8 *) line_buf + line_len); line_len += 8;
|
||||
u32_to_hex (byte_swap_32 (wpa->keymic[3]), (u8 *) line_buf + line_len); line_len += 8;
|
||||
}
|
||||
|
||||
line_buf[line_len] = ':';
|
||||
|
@ -1203,10 +1203,10 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
||||
}
|
||||
else if (wpa->type == 2)
|
||||
{
|
||||
u32_to_hex (wpa->keymic[0], (u8 *) line_buf + line_len); line_len += 8;
|
||||
u32_to_hex (wpa->keymic[1], (u8 *) line_buf + line_len); line_len += 8;
|
||||
u32_to_hex (wpa->keymic[2], (u8 *) line_buf + line_len); line_len += 8;
|
||||
u32_to_hex (wpa->keymic[3], (u8 *) line_buf + line_len); line_len += 8;
|
||||
u32_to_hex (byte_swap_32 (wpa->keymic[0]), (u8 *) line_buf + line_len); line_len += 8;
|
||||
u32_to_hex (byte_swap_32 (wpa->keymic[1]), (u8 *) line_buf + line_len); line_len += 8;
|
||||
u32_to_hex (byte_swap_32 (wpa->keymic[2]), (u8 *) line_buf + line_len); line_len += 8;
|
||||
u32_to_hex (byte_swap_32 (wpa->keymic[3]), (u8 *) line_buf + line_len); line_len += 8;
|
||||
}
|
||||
|
||||
line_buf[line_len] = ':';
|
||||
|
Loading…
Reference in New Issue
Block a user