diff --git a/docs/changes.txt b/docs/changes.txt index 48290e341..1519dba47 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -29,6 +29,7 @@ - Fixed bug on benchmark engine, from now it will not stop at the first error detected - Fixed false negative on Unit Test in case of out-of-memory with grep in single mode - Fixed Unit Test early exit on luks test file download/extract failure +- Fixed --hash-info example password output: force uppercase if OPTS_TYPE_PT_UPPER is set ## ## Technical diff --git a/src/terminal.c b/src/terminal.c index b39b502bc..3692c10b3 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -699,6 +699,20 @@ void hash_info_single (hashcat_ctx_t *hashcat_ctx, user_options_extra_t *user_op hcfree (tmp_buf); } + else if (hashconfig->opts_type & OPTS_TYPE_PT_UPPER) + { + size_t st_pass_len = strlen (hashconfig->st_pass); + + char *tmp_buf = (char *) hcmalloc (st_pass_len + 1); + + strncpy (tmp_buf, hashconfig->st_pass, st_pass_len); + + uppercase ((u8 *) tmp_buf, st_pass_len); + + event_log_info (hashcat_ctx, " Example.Pass........: %s", tmp_buf); + + hcfree (tmp_buf); + } else { event_log_info (hashcat_ctx, " Example.Pass........: %s", hashconfig->st_pass);