mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #745] Test and/or implement rules x rules #380
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#380
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 16, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/745
PoC: create a trivial program (perl script?) that parses john.conf and can generate a new ruleset from two different ones (or twice the same) as "rules x rules".
So from these two rule sets:
...perhaps using a syntax like this:
...would read the existing rulesets from john.conf and create this new one:
There might be some situations where some "editing" will be needed. For example, rule reject flags might only be allowed at start of line (I'm not sure) and if so, should ones from the "right hand" set be ignored or moved?
@magnumripper commented on GitHub (Sep 16, 2014):
BTW here is how to do this without such script: You run wordlist through first ruleset to stdout, then use -pipe and next ruleset:
@jfoug commented on GitHub (Sep 16, 2014):
Would we possibly want to simply have JtR core do this:
./john input.txt -rules=case+prependappend or something like that ??
@magnumripper commented on GitHub (Sep 16, 2014):
Absolutely, but that is probably trickier. I thought we had an issue for that but we don't seem to have one.
@jfoug commented on GitHub (Sep 16, 2014):
A PoC even if simply a simple perl script would allow us to at least get a taste for what is possible.
We could easily (well not 'super easily') do it in john, the same as I did for includes. But I think the PoC as you wrote it, would at least allow us to show that it would be a good thing.
@magnumripper commented on GitHub (Sep 16, 2014):
I imagine the best thing if/when doing it within JtR, is doing it on the fly in some way. That is, if you combine two rulesets that expand to 10,000 rules each, it would never be 100,000,000 rules in memory at once. But that's possibly even harder to achieve.
@jfoug commented on GitHub (Sep 16, 2014):
That would be harder, but still not out of realm of what can be done. It is much easier to pre-permute the 2 (or more) rule tables into a larger table, and simply walking that table.
@magnumripper commented on GitHub (Sep 16, 2014):
I think that last goal would be worth the effort if it can be done at all. I'm thinking short, very high quality wordlist (or Single mode!) - and a mindbogglingly massive number of rules applied. Most script kiddies do it the other way round with silly 15 GB wordlists full of utter crap.
@magnumripper commented on GitHub (Sep 16, 2014):
BTW regardless of implementing this in Perl or in core, I would think/hope it could be done in a way so we could do more than two rules (eg. rules x rules x rules). Ideally there should be no particular limit other than the resulting size.
@frank-dittrich commented on GitHub (Sep 16, 2014):
Is the output of
of any help?
At least, it already parsed john.conf sections.
@magnumripper commented on GitHub (Sep 16, 2014):
@frank-dittrich yeah a Perl script could do that internally. That saves a good number of lines of code (for supporting .include and --config=FILE and so on).
@magnumripper commented on GitHub (Sep 16, 2014):
I changed this issue to cover both (otherwise we'll end up discussing same things in two threads)
@magnumripper commented on GitHub (Jan 9, 2015):
This was OT in #998 but not here: Here are results from rules x rules with the default wordlist, a good example of why a wordlist should be very carefully trimmed. Jumbo squares to 491,287,225 rules! For speed we only use single mode rules here which squares to 1,168,561 rules.
From scratch, using dummy hashes generated from Rockyou with dupes:
35% cracked, this is slightly better than a single -rules=all despite generating just 1/8 the number of candidates. Or in other words, single x single is over 8 times more effective than -rules=all.
Edit: By the g/s figures, it's 6 times more effective. This is probably more accurate, the other figure was not accounting for word rejects.