1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-21 23:58:07 +00:00

Merge pull request #3832 from mohemiv/potfile-fix

Fixing a bug that --outfile-autohex-disable affects potfile
This commit is contained in:
Jens Steube 2023-08-23 19:24:44 +02:00 committed by GitHub
commit db4d8e23e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -103,6 +103,7 @@
- Fixed vector datatypes usage for HIP
- Fixed out-of-boundary read when a fast hash defines a kernel_loops_min value higher than the amplifiers provided by the user
- Fix missing check for -j and -k before writing hashcat.dictstat2 which can lead to false negatives
- Fixed a bug that --outfile-autohex-disable affects potfile
##
## Technical

View File

@ -275,7 +275,7 @@ void potfile_write_append (hashcat_ctx_t *hashcat_ctx, const char *out_buf, cons
{
const bool always_ascii = (hashconfig->opts_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))
if (need_hexify (plain_ptr, plain_len, hashconfig->separator, always_ascii) == true)
{
tmp_buf[tmp_len++] = '$';
tmp_buf[tmp_len++] = 'H';