1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-13 19:28:56 +00:00

Use * in potfile entries for -m 22000 and -m 22001

This commit is contained in:
Jens Steube 2020-01-02 10:41:22 +01:00
parent 311d363054
commit daaf5d365c
2 changed files with 5 additions and 5 deletions

View File

@ -327,7 +327,7 @@ int module_hash_decode_potfile (MAYBE_UNUSED const hashconfig_t *hashconfig, MAY
// essid
char *sep_pos = strrchr (line_buf, ':');
char *sep_pos = strrchr (line_buf, '*');
if (sep_pos == NULL) return (PARSER_SEPARATOR_UNMATCHED);
@ -358,7 +358,7 @@ int module_hash_encode_potfile (MAYBE_UNUSED const hashconfig_t *hashconfig, MAY
tmp_buf[tmp_len] = 0;
const int line_len = snprintf (line_buf, line_size, "%08x%08x%08x%08x%08x%08x%08x%08x:%s",
const int line_len = snprintf (line_buf, line_size, "%08x%08x%08x%08x%08x%08x%08x%08x*%s",
wpa_pbkdf2_tmp->out[0],
wpa_pbkdf2_tmp->out[1],
wpa_pbkdf2_tmp->out[2],
@ -1193,7 +1193,7 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
const u8 *mac_ap = (const u8 *) wpa->mac_ap;
const u8 *mac_sta = (const u8 *) wpa->mac_sta;
if (need_hexify ((const u8 *) wpa->essid_buf, wpa->essid_len, ':', 0) == true)
if (need_hexify ((const u8 *) wpa->essid_buf, wpa->essid_len, '*', 0) == true)
{
char tmp_buf[128];

View File

@ -328,7 +328,7 @@ int module_hash_decode_potfile (MAYBE_UNUSED const hashconfig_t *hashconfig, MAY
// essid
char *sep_pos = strrchr (line_buf, ':');
char *sep_pos = strrchr (line_buf, '*');
if (sep_pos == NULL) return (PARSER_SEPARATOR_UNMATCHED);
@ -1194,7 +1194,7 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
const u8 *mac_ap = (const u8 *) wpa->mac_ap;
const u8 *mac_sta = (const u8 *) wpa->mac_sta;
if (need_hexify ((const u8 *) wpa->essid_buf, wpa->essid_len, ':', 0) == true)
if (need_hexify ((const u8 *) wpa->essid_buf, wpa->essid_len, '*', 0) == true)
{
char tmp_buf[128];