mirror of
https://github.com/hashcat/hashcat
synced 2024-11-24 14:27:14 +01:00
Autodetect: Limit the number of errors per hash-mode try to 100 to avoid long startup time
This commit is contained in:
parent
13806f11b3
commit
2c48bba62d
@ -26,6 +26,7 @@
|
||||
## Technical
|
||||
##
|
||||
|
||||
- Autodetect: Limit the number of errors per hash-mode try to 100 to avoid long startup time
|
||||
- LM: Workaround JiT compiler bug in -m 3000 on NV leading to false negatives with large amount of hashes
|
||||
- Tests: Changed tests for VeraCrypt from -a 0 to -a 3, because password extension is not available to all shells
|
||||
|
||||
|
@ -1271,6 +1271,8 @@ bool autodetect_hashmode_test (hashcat_ctx_t *hashcat_ctx)
|
||||
{
|
||||
HCFILE fp;
|
||||
|
||||
int error_count = 0;
|
||||
|
||||
if (hc_fopen (&fp, hashfile, "rb") == false) return false;
|
||||
|
||||
char *line_buf = (char *) hcmalloc (HCBUFSIZ_LARGE);
|
||||
@ -1301,6 +1303,17 @@ bool autodetect_hashmode_test (hashcat_ctx_t *hashcat_ctx)
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
// abort this list after 100 errors
|
||||
|
||||
if (error_count == 100)
|
||||
{
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
error_count++;
|
||||
}
|
||||
}
|
||||
|
||||
hcfree (line_buf);
|
||||
|
Loading…
Reference in New Issue
Block a user