mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #497] Add new single-wordlist cracking mode #201
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#201
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 (Jan 31, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/497
Originally assigned to: @magnumripper on GitHub.
Currently we have these two ways (among others) of producing candidates:
Combine that! Add a Single mode that takes a wordlist file, and add rules (or variables?) for the current user name (and gecos info etc). So if we have this hash:
Combining the word 'pass' from a wordlist with the user info, rules could construct password candidates like rootpass, passSuper, SuperUserpass and so on. I believe this would prove very powerful.
@magnumripper commented on GitHub (Dec 12, 2016):
Like I just mentioned in a commit comment, I'm on to this (will be
--single-wordlist=FILE). I have some ideas for how to do it KISS, with very little code added (and I will enhance--single-seed=WORDat the same time so it allocates the word(s) just once - that's quite some difference with a 100 million users).I picture things like
--single-wordlist=car_brands.lstand things like that (always fairly short wordlists of course) will be very effective. It will produce things like "beemer_bob" and "JohnnyDMC-12". Then change car_brands.lst to soccer_teams.lst or whatever. The sky's the limit!@magnumripper commented on GitHub (Dec 12, 2016):
Note to self: No word pairs should ever be created with two seed words - at least one of them must come from login or GECOS field. This is not currently the case with
--single-seedbut it will be using same code and I think I know how to code this.@magnumripper commented on GitHub (Dec 12, 2016):
Dropped the "non-trivial" label. It is trivial, it just took me
2.5 years to figure it outOK, looking at the mail archives, It actually took 6.5 years 😆@magnumripper commented on GitHub (Dec 12, 2016):
A less important decision is whether
--single-wordlistand/or--single-seedshould imply--singleso you don't need to write that too. Current--single-seeddoes not imply it so you need to write--single --single-seed=...@ghost commented on GitHub (Dec 12, 2016):
+1 to imply.
@magnumripper commented on GitHub (Dec 12, 2016):
Another note to self: Single mode will create some word pairs for eg. "Joe Random Luser" of initials, eg. "JRandom" and "JoeL". This should never happen to a seed word. It should only be used in full. Creating "JoeC" from "Chelsea" makes no sense in this context, as opposed to eg. "JChelsea".
@jfoug commented on GitHub (Dec 13, 2016):
Single mode is SO powerful, but improving it in this manner makes it MUCH more powerful yet. The single mode 'is' showing a bit of age, and this gets it back up to cutting edge. I really think single mode (if there is GECOS data) is by far the most powerful and fast mode out there. For HUGE and slow cracking (like AM was prior to the legacy crypt bug found), single was pretty much the ONLY way to attack that data. I ran just single mode, and had cracked over a million candidates (I back-filled with 12345 and 123456 when the crack was not 'full'). That mode really handled terribly slow monster dumps well. But having seeds of ashley and madison (or sex, xxx, etc) would really improve AM. Also, this would add a very useful help when a web site is dumped. Many users do things like netflix-password for their netflix account, etc. Providing ability to easily inject knowledge to things like known website dumps will crack a very good amount of extra hashes.
@jfoug commented on GitHub (Dec 13, 2016):
Can we simply enhance the --single option, vs making 3 of them??
@magnumripper commented on GitHub (Dec 13, 2016):
Ideally it should've been
--single --rules=RULESinstead of--single=RULESand then we could have added options. I don't like overloading options like was done to Markov.@jfoug commented on GitHub (Dec 13, 2016):
It IS --single=RULES (I think). OH, I see, --single without the =rules.
Ok, why can this not be handled?
--single[=TYPE][:TYPE][:TYPE][:.....]Then TYPE would be any of these:
RULE | -wordlist=FILE | -seed=WORDThat way, original default behavior is maintained
--single[=RULE (default --single still meaning --single=single )]BUT we can now add multiple seed words, and or multiple rules (an enhancement in of itself) and or multiple wordlist files, just all in 1 option. The only shortcoming I see, is how to have a seed word with a ':' char, BUT that could be worked around by having that word in a -wordlist=FILE file.But is that any worse than overloading the command line options to keep them 'small', but totally interdependent upon each other? I think that is less user friendly ITRW. Single mode is a very powerful, and nuanced option (just like Markov). Having 'easy' default stuff makes it very usable for the masses, but making the option able to provide all (or almost all) required options that squeezes the most out of it makes it very usable by experienced jtr hackers, who really want to push it to the limit.
@ghost commented on GitHub (Dec 13, 2016):
I like "--single=RULES" (but this is personal). Since JtR already has it, Jim's "one option" is a choice:
Maybe awkward (?!). I'm afraid I don't like its "muchness".
@jfoug commented on GitHub (Dec 13, 2016):
I came up with it off the cuff. If you have better ideas, toss them out. I also think what I have is awkward, but usable.
Could also do both like this:
The colon : is the option separator. If an option starts with -wordlist= then it is a wordlist. If it starts with -seed= then it is a seed word. If it starts with neither, then it is a rule name.
@magnumripper commented on GitHub (Dec 13, 2016):
You are kidding, right!? I really hate what we did to --markov and now you are proposing the same crap again 😆
How would anyone remember that oddball syntax? How would we tell getopt how to check syntax? How would we implement bash completion for it?
I'm done adding the functionality and right now it's separate options
--single-seedand--single-wordlist. Personally I see absolutely no need for making it harder than that. Try it out instead, it rocks.@magnumripper commented on GitHub (Dec 13, 2016):
Haven't tried it yet and I'm not sure I will bother. There's some caveats with option flags and stuff... I think I'll just leave it as-is.