mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-23 00:28:11 +00:00
Merge pull request #1452 from philsmd/master
fixes #1447: prevent hexifying the $HEX[] passwords again in --show runs
This commit is contained in:
commit
c8819e6e8b
@ -11,6 +11,7 @@
|
||||
##
|
||||
|
||||
- Fixed a hash parsing problem when using --show/--left together with hashes with long salts that require pure kernels
|
||||
- Fixed the output of --show if $HEX[] passwords are present within the potfile
|
||||
|
||||
* changes v4.0.0 -> v4.0.1:
|
||||
|
||||
|
@ -443,10 +443,20 @@ int outfile_write (hashcat_ctx_t *hashcat_ctx, const char *out_buf, const unsign
|
||||
}
|
||||
|
||||
if (outfile_ctx->outfile_format & OUTFILE_FMT_PLAIN)
|
||||
{
|
||||
bool convert_to_hex = false;
|
||||
|
||||
if (user_options->show == false)
|
||||
{
|
||||
if (user_options->outfile_autohex == true)
|
||||
{
|
||||
const bool always_ascii = (hashconfig->hash_type & OPTS_TYPE_PT_ALWAYS_ASCII) ? true : false;
|
||||
|
||||
if ((user_options->outfile_autohex == true) && (need_hexify (plain_ptr, plain_len, hashconfig->separator, always_ascii) == true))
|
||||
convert_to_hex = need_hexify (plain_ptr, plain_len, hashconfig->separator, always_ascii);
|
||||
}
|
||||
}
|
||||
|
||||
if (convert_to_hex)
|
||||
{
|
||||
tmp_buf[tmp_len++] = '$';
|
||||
tmp_buf[tmp_len++] = 'H';
|
||||
|
Loading…
Reference in New Issue
Block a user