Need help to make a custom wordlist - Printable Version +- hashcat Forum (https://hashcat.net/forum) +-- Forum: Support (https://hashcat.net/forum/forum-3.html) +--- Forum: hashcat-utils, maskprocessor, statsprocessor, md5stress, wikistrip (https://hashcat.net/forum/forum-28.html) +--- Thread: Need help to make a custom wordlist (/thread-9340.html) |
Need help to make a custom wordlist - Pilsener - 06-26-2020 I have forgotten one of my passphrases. It's a combination of names, numbers and symbols, as the example listed below: ------------------------ JohnDoe JaneDoe 22222 33333 44444 + - & ( ) ----------------------- What I DO know about the phrase: Both names are present at the same time, but only once each. All numbers are present at the same time, but only once each. The symbols are in various places. JohnDoe is the first word of the phrase The phrase may look like: JohnDoe(33333)+(44444)&22222-JaneDoe or JohnDoe33333+(JaneDoe)(22222)-44444 or whatever other combination. How can I make list with all combinations of the above mentioned? RE: Need help to make a custom wordlist - philsmd - 06-27-2020 it's actually not that easy to make policies/"rules" like this. Furthermore, there are infinite many possibilities that an user might want differently and more flexible etc. I think most of these complicated combinations with special "rules" need to somehow be implemented with a standalone script. Of course it wouldn't be impossible to generate some basic list (and maybe combine them etc) and afterwards filter them with some "grep-like" tools etc... but this isn't actually that easy even with those tools (unix tools grep/sed/awk etc)... There are just too many things that could be slightly modified and ... most importantly the length matters a lot... for instance from your text above it seems that you only have a few words and symbols etc... but even there the number of combination of each one with each other is very large (even if filtered a little bit)... but ... one other thing: The number of symbols in between the words that you did not mention a lot contribute also very, very much to a very large keyspace and total number of combinations... for instance the 3 symbols ")+(" if we combine 1 to 3 random symbols in between each and every word, we already get a huge amount of possibilities. It's a lot ! That said, you could just use your prefered programming language (python, perl, php, maybe even javascript/nodejs etc, but the latter one maybe not recommended ?) and try to implement the logic for the combinatorics (combining a huge list with another list a flexible amount of time, with and without repetitions etc) and the policy/filtering... To get you started, I quickly came up with this (maybe not too fast and clean, but still quite nicely working) perl script, that does the combination of words and symbols etc: Code: #!/usr/bin/env perl you could run it like this: Code: perl combo.pl At the beginning of the file you will see several "settings" to configure the words, symbols and symbol lengths between the single words. It's probably not that good to add much more words or symbols, because the keyspace is already very huge this way... You could probably pipe the output of the script to hashcat, but this depends a lot on the hash type. Of course the script is just meant to help you to see how difficult it could be to implement such filters and how huge a keyspace would increase (exponentially) with increasing number of symbols/words etc It's difficult to have a very generalized tool that is able to do all this stuff with a few command line options (or user interface clicks), because there are just way too many possibilities. The rules could say anything, even something like there must be 2 occurrences of "x", but "y" can only occur AFTER x and must be present at least twice, but not more then 3 times etc etc etc I think the best option in such complicated situations is to just try to implement these poclicies in a simple script and afterwards improve it and add more filters etc RE: Need help to make a custom wordlist - Pilsener - 06-28-2020 Very interesting. How can I direct output to a file? RE: Need help to make a custom wordlist - philsmd - 06-29-2020 > dict.txt but it doesn't make much sense since (as said) the number of combinations is quite huge maybe stdin/pipe would make much more sense, but it depends on the hash type (-m) that you use |