Skip to content

Commit

Permalink
Add a missing sanity check on startup to disallow the use of increment
Browse files Browse the repository at this point in the history
in combination with -s and -l
Fixes hashcat#8
  • Loading branch information
jsteube committed Jun 9, 2017
1 parent 908a2d2 commit 1708898
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
20 changes: 12 additions & 8 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
* v0.72 -> v0.73:

- Open Source the project
- License is MIT
- Moved repository to github: https://github.com/jsteube/maskprocessor
- Added CHANGES
- Added LICENSE
- Added README.md
* v0.73 -> xxx:

- Add a missing sanity check on startup to disallow the use of increment in combination with -s and -l

* v0.72 -> v0.73:

- Open Source the project
- License is MIT
- Moved repository to github: https://github.com/jsteube/maskprocessor
- Added CHANGES
- Added LICENSE
- Added README.md
14 changes: 14 additions & 0 deletions src/mp.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,20 @@ int main (int argc, char *argv[])
return (-1);
}

if (increment && start_at)
{
fprintf (stderr, "--increment can not be used with --start-at\n");

return (-1);
}

if (increment && stop_at)
{
fprintf (stderr, "--increment can not be used with --stop-at\n");

return (-1);
}

/* buffers */

char *mp_sys[6];
Expand Down

0 comments on commit 1708898

Please sign in to comment.