1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-03-03 08:36:04 +00:00

Fixed a bug in rule generator code when using the memory copy function

This commit is contained in:
jsteube 2016-11-12 15:34:17 +01:00
parent b0a616084d
commit 45ffc764ed
2 changed files with 4 additions and 3 deletions

View File

@ -18,8 +18,9 @@
## Bugs ## Bugs
## ##
- Fixed a bug when cracking a large salted hashlist status view showed 0H/s but progress counter increased - Fixed a bug in wordlist reject code when cracking a large salted hashlist
- Fixed a bug when loading custom charset from file - Fixed a bug in custom charset from file parsing code
- Fixed a bug in rule generator code when using the memory copy function
## ##
## Algorithms ## Algorithms

View File

@ -234,7 +234,7 @@ int generate_random_rule (char rule_buf[RP_RULE_BUFSIZ], const u32 rp_gen_func_m
p1 = get_random_num (0, sizeof (grp_pos)); p1 = get_random_num (0, sizeof (grp_pos));
rule_buf[rule_pos++] = grp_pos[p1]; rule_buf[rule_pos++] = grp_pos[p1];
p2 = get_random_num (1, sizeof (grp_pos)); p2 = get_random_num (1, sizeof (grp_pos));
rule_buf[rule_pos++] = grp_pos[p1]; rule_buf[rule_pos++] = grp_pos[p2];
p3 = get_random_num (0, sizeof (grp_pos)); p3 = get_random_num (0, sizeof (grp_pos));
rule_buf[rule_pos++] = grp_pos[p3]; rule_buf[rule_pos++] = grp_pos[p3];
break; break;