mirror of
https://github.com/hashcat/hashcat
synced 2024-11-13 17:28:58 +01:00
Merge pull request #1451 from philsmd/master
always include the error message even if hash is long
This commit is contained in:
commit
966e437d69
@ -14,6 +14,12 @@
|
||||
|
||||
* changes v4.0.0 -> v4.0.1:
|
||||
|
||||
##
|
||||
## Improvements
|
||||
##
|
||||
|
||||
- Changed the maximum length of the substring of a hash shown whenever the parser found a problem while parsing the hash
|
||||
|
||||
##
|
||||
## Bugs
|
||||
##
|
||||
|
41
src/hashes.c
41
src/hashes.c
@ -14,6 +14,7 @@
|
||||
#include "filehandling.h"
|
||||
#include "hlfmt.h"
|
||||
#include "interface.h"
|
||||
#include "terminal.h"
|
||||
#include "logfile.h"
|
||||
#include "loopback.h"
|
||||
#include "mpsp.h"
|
||||
@ -1035,7 +1036,15 @@ int hashes_init_stage1 (hashcat_ctx_t *hashcat_ctx)
|
||||
|
||||
if (parser_status < PARSER_GLOBAL_ZERO)
|
||||
{
|
||||
event_log_warning (hashcat_ctx, "Hashfile '%s' on line %u (%s): %s", hashes->hashfile, line_num, line_buf, strparser (parser_status));
|
||||
char *tmp_line_buf;
|
||||
|
||||
hc_asprintf (&tmp_line_buf, "%s", line_buf);
|
||||
|
||||
compress_terminal_line_length (tmp_line_buf, 38, 32);
|
||||
|
||||
event_log_warning (hashcat_ctx, "Hashfile '%s' on line %u (%s): %s", hashes->hashfile, line_num, tmp_line_buf, strparser (parser_status));
|
||||
|
||||
hcfree (tmp_line_buf);
|
||||
|
||||
continue;
|
||||
}
|
||||
@ -1049,7 +1058,15 @@ int hashes_init_stage1 (hashcat_ctx_t *hashcat_ctx)
|
||||
|
||||
if (parser_status < PARSER_GLOBAL_ZERO)
|
||||
{
|
||||
event_log_warning (hashcat_ctx, "Hashfile '%s' on line %u (%s): %s", hashes->hashfile, line_num, line_buf, strparser (parser_status));
|
||||
char *tmp_line_buf;
|
||||
|
||||
hc_asprintf (&tmp_line_buf, "%s", line_buf);
|
||||
|
||||
compress_terminal_line_length (tmp_line_buf, 38, 32);
|
||||
|
||||
event_log_warning (hashcat_ctx, "Hashfile '%s' on line %u (%s): %s", hashes->hashfile, line_num, tmp_line_buf, strparser (parser_status));
|
||||
|
||||
hcfree (tmp_line_buf);
|
||||
|
||||
continue;
|
||||
}
|
||||
@ -1065,7 +1082,15 @@ int hashes_init_stage1 (hashcat_ctx_t *hashcat_ctx)
|
||||
|
||||
if (parser_status < PARSER_GLOBAL_ZERO)
|
||||
{
|
||||
event_log_warning (hashcat_ctx, "Hashfile '%s' on line %u (%s): %s", hashes->hashfile, line_num, line_buf, strparser (parser_status));
|
||||
char *tmp_line_buf;
|
||||
|
||||
hc_asprintf (&tmp_line_buf, "%s", line_buf);
|
||||
|
||||
compress_terminal_line_length (tmp_line_buf, 38, 32);
|
||||
|
||||
event_log_warning (hashcat_ctx, "Hashfile '%s' on line %u (%s): %s", hashes->hashfile, line_num, tmp_line_buf, strparser (parser_status));
|
||||
|
||||
hcfree (tmp_line_buf);
|
||||
|
||||
continue;
|
||||
}
|
||||
@ -1082,7 +1107,15 @@ int hashes_init_stage1 (hashcat_ctx_t *hashcat_ctx)
|
||||
|
||||
if (parser_status < PARSER_GLOBAL_ZERO)
|
||||
{
|
||||
event_log_warning (hashcat_ctx, "Hashfile '%s' on line %u (%s): %s", hashes->hashfile, line_num, line_buf, strparser (parser_status));
|
||||
char *tmp_line_buf;
|
||||
|
||||
hc_asprintf (&tmp_line_buf, "%s", line_buf);
|
||||
|
||||
compress_terminal_line_length (tmp_line_buf, 38, 32);
|
||||
|
||||
event_log_warning (hashcat_ctx, "Hashfile '%s' on line %u (%s): %s", hashes->hashfile, line_num, tmp_line_buf, strparser (parser_status));
|
||||
|
||||
hcfree (tmp_line_buf);
|
||||
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user