1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-15 12:29:35 +00:00

Add Custom.Chars to output window in the case of a user specifying -1, -2, -3, -4.

This commit is contained in:
radix 2016-07-30 20:14:46 -05:00
parent d4dfe58a72
commit 004812819f
No known key found for this signature in database
GPG Key ID: 60B13472825081C1
2 changed files with 18 additions and 0 deletions

View File

@ -1281,6 +1281,10 @@ typedef struct
char *veracrypt_keyfiles;
uint veracrypt_pim;
uint workload_profile;
char *custom_charset_1;
char *custom_charset_2;
char *custom_charset_3;
char *custom_charset_4;
uint hash_mode;
uint hash_type;

View File

@ -1036,6 +1036,16 @@ void status_display ()
}
log_info ("Input.Mode.....: %s", tmp_buf);
if (data.custom_charset_1 || data.custom_charset_2 || data.custom_charset_3 || data.custom_charset_4)
{
char *custom_charset_1 = data.custom_charset_1;
char *custom_charset_2 = data.custom_charset_2;
char *custom_charset_3 = data.custom_charset_3;
char *custom_charset_4 = data.custom_charset_4;
log_info ("Custom.Chars...: -1 %s. -2 %s, -3 %s, -4 %s", custom_charset_1, custom_charset_2, custom_charset_3, custom_charset_4);
}
}
tmp_len = 0;
@ -7549,6 +7559,10 @@ int main (int argc, char **argv)
data.benchmark = benchmark;
data.skip = skip;
data.limit = limit;
data.custom_charset_1 = custom_charset_1;
data.custom_charset_2 = custom_charset_2;
data.custom_charset_3 = custom_charset_3;
data.custom_charset_4 = custom_charset_4;
#ifdef HAVE_HWMON
data.powertune_enable = powertune_enable;
#endif