1
0
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:
Jens Steube 2020-01-26 10:45:41 +01:00
parent 3561e7b8d7
commit 424a6ee8e9
2 changed files with 8 additions and 8 deletions

View File

@ -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] = ':';

View File

@ -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] = ':';