mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #762] Mask mode: custom masks #395
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#395
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @magnumripper on GitHub (Sep 26, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/762
Originally assigned to: @magnumripper on GitHub.
Hashcat has this as
-1through-4so maybe we should adopt that.-1=?u?l -mask=?1?l?l?lwould produce [A-Za-z][a-z][a-z][a-z]We should support things like
-1=[aouei?d]too. But that is a placeholder within a [] range... would that mean we'd support-mask=[?u?l]?l?l?las equivalent to-1=?u?l -mask=?1?l?l?l?@frank-dittrich commented on GitHub (Sep 26, 2014):
I'd prefer not to support -1=... etc, and --mask=?1 refer to the definition in the [UserClasses] section.
But then, I'd love to use the "character classes" used for rules in mask mode, despite that being incompatible with hashcat (and InsidePro).
May be we need a john.conf option or even different "mask mode" sections [Mask.hashcat], [Mask.john], etc. and a default setting which can be changed in john-local.conf.
@magnumripper commented on GitHub (Sep 26, 2014):
A john.conf-only alternative is out of the question. I would definitely hate having to edit a config file to try another mask. And even worse, if you have jobs running with a mask configured in john.conf and then edit the conf... chaos!
Having said that, we could definitely have defaults for
-1and so on, in john.conf, under a Mask section. They could come with the Hashcat defaults pre-filled in.@magnumripper commented on GitHub (Sep 26, 2014):
@Sayantan2048 obviously things like this are not anything you should bother with, you should just concentrate on GPU generation please!
@magnumripper commented on GitHub (Sep 27, 2014):
Crude support added. You can't currently use placeholders or ranges within custom placeholders (we need to recurse) so this won't work yet:
-1=?u?d(and nor will-1=[a-z], or-mask=[?l?d]or using\xHH) but this works fine:-1=0123456789abcdef -mask=de:ad:?1?1:?1?1:ba:be.Also, john.conf defaults are added, with the same limitations.
@magnumripper commented on GitHub (Sep 27, 2014):
Also to do: Add stuff to usage blob
@magnumripper commented on GitHub (Sep 27, 2014):
See also #380 for -min/max-length support.
@magnumripper commented on GitHub (Sep 27, 2014):
I wonder if Hashcat allows things like
-2=?1?d... it may come handy but we'd have to watch out for "loops". Perhaps we can allow -2..-4 to include ?1, and ?3 and ?4 could also include ?2 and so on.@magnumripper commented on GitHub (Oct 2, 2014):
This was fixed in #776.