mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-11 00:01:16 +00:00
Fixed --hash-info example password output: force uppercase if OPTS_TYPE_PT_UPPER is set
This commit is contained in:
parent
b6138ac361
commit
adfe942751
@ -29,6 +29,7 @@
|
|||||||
- Fixed bug on benchmark engine, from now it will not stop at the first error detected
|
- 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 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 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
|
## Technical
|
||||||
|
@ -699,6 +699,20 @@ void hash_info_single (hashcat_ctx_t *hashcat_ctx, user_options_extra_t *user_op
|
|||||||
|
|
||||||
hcfree (tmp_buf);
|
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
|
else
|
||||||
{
|
{
|
||||||
event_log_info (hashcat_ctx, " Example.Pass........: %s", hashconfig->st_pass);
|
event_log_info (hashcat_ctx, " Example.Pass........: %s", hashconfig->st_pass);
|
||||||
|
Loading…
Reference in New Issue
Block a user