mirror of
https://github.com/hashcat/hashcat.git
synced 2025-05-05 08:29:17 +00:00
Fixed hex output of plaintext in case --outfile-format 4, 5, 6 or 7 was used
Fixes https://github.com/hashcat/hashcat/issues/922
This commit is contained in:
parent
cafd4b50e7
commit
4b9cb7bbcf
@ -21,6 +21,7 @@
|
|||||||
- Fixed double fclose() using AMDGPU-Pro on sysfs compatible platform: Leading to segfault
|
- Fixed double fclose() using AMDGPU-Pro on sysfs compatible platform: Leading to segfault
|
||||||
- Fixed kernel loops in --increment mode leading to slower performance
|
- Fixed kernel loops in --increment mode leading to slower performance
|
||||||
- Fixed custom char parsing code in maskfiles in --increment mode: Custom charset wasn't used
|
- Fixed custom char parsing code in maskfiles in --increment mode: Custom charset wasn't used
|
||||||
|
- Fixed hex output of plaintext in case --outfile-format 4, 5, 6 or 7 was used
|
||||||
- Removed access to readlink() on FreeBSD: Causes problem building hashcat
|
- Removed access to readlink() on FreeBSD: Causes problem building hashcat
|
||||||
|
|
||||||
##
|
##
|
||||||
|
@ -413,13 +413,10 @@ int outfile_write (hashcat_ctx_t *hashcat_ctx, const char *out_buf, const unsign
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (outfile_ctx->outfile_format & OUTFILE_FMT_HEXPLAIN)
|
if (outfile_ctx->outfile_format & OUTFILE_FMT_HEXPLAIN)
|
||||||
{
|
|
||||||
for (u32 i = 0; i < plain_len; i++)
|
|
||||||
{
|
{
|
||||||
exec_hexify ((const u8 *) plain_ptr, plain_len, (u8 *) tmp_buf + tmp_len);
|
exec_hexify ((const u8 *) plain_ptr, plain_len, (u8 *) tmp_buf + tmp_len);
|
||||||
|
|
||||||
tmp_len += 2;
|
tmp_len += plain_len * 2;
|
||||||
}
|
|
||||||
|
|
||||||
if (outfile_ctx->outfile_format & (OUTFILE_FMT_CRACKPOS))
|
if (outfile_ctx->outfile_format & (OUTFILE_FMT_CRACKPOS))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user