projects
/
hashcat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8475df
)
set default iteration count for -m 2100 = DCC2 to 10240
author
philsmd
<philsmd@hashcat.net>
Wed, 13 Jan 2016 23:14:43 +0000
(
00:14
+0100)
committer
philsmd
<philsmd@hashcat.net>
Wed, 13 Jan 2016 23:14:43 +0000
(
00:14
+0100)
docs/changes.txt
patch
|
blob
|
history
src/shared.c
patch
|
blob
|
history
diff --git
a/docs/changes.txt
b/docs/changes.txt
index
d47f430
..
d48f1c3
100644
(file)
--- a/
docs/changes.txt
+++ b/
docs/changes.txt
@@
-95,6
+95,10
@@
Type.: Bug
File.: Kernel
Desc.: Fix a bug in the implementation of GOST R 34.11-94, zero length passwords were not cracked
+Type.: Bug
+File.: Host
+Desc.: Forced default iteration count for -m 2100 = DCC2 hashes to 10240
+
* changes v2.00 -> v2.01:
Type.: Bug
diff --git
a/src/shared.c
b/src/shared.c
index
1d5e793
..
45a53e5
100644
(file)
--- a/
src/shared.c
+++ b/
src/shared.c
@@
-9868,7
+9868,14
@@
int dcc2_parse_hash (char *input_buf, uint input_len, hash_t *hash_buf)
salt_t *salt = hash_buf->salt;
- salt->salt_iter = atoi (iter_pos) - 1;
+ uint iter = atoi (iter_pos);
+
+ if (iter < 1)
+ {
+ iter = ROUNDS_DCC2;
+ }
+
+ salt->salt_iter = iter - 1;
char *salt_pos = strchr (iter_pos, '#');