a fast password wordlist generator, Smartlist creation and password hybrid-mask analysis tool written in pure safe Rust
a fast password wordlist generator, Smartlist creation and password hybrid-mask analysis tool written in pure safe Rust
Cracken is a fast password wordlist generator, Smartlist creation and password hybrid-mask analysis tool written in pure safe Rust (more on talk/). Inspired by great tools like maskprocessor, hashcat, Crunch and HuggingFace's tokenizers.
At DeepSec2021 we presented a new method for analysing passwords as Hybrid-Masks exploiting common substrings in passwords by utilizing NLP tokenizers (more info on talk/).
Our method splits a password into its subwords instead of just a characters mask. HelloWorld123! splitted into ['Hello', 'World', '123!'] as these three subwords are very common in other passwords.
?w1?w2?l?d)full table here
Hybrid-Masks very VERY FAST ⚡ (see performance section)Smartlists - compact & representative list of subwords from given passwords files (using HuggingFace's tokenizers)Hybrid-Masks - building statistics for better password candidates (again very fast)cracken -w rockyou.txt -w 100-most-common.txt '?w1?w2?d?d?d?d?s'hashcat, john or your favorite password crackercracken createcracken entropyHybrid-Masks to generate password candidates fast - cracken generate -i hybrid-masks.txtFor more details see Usage section
download (linux only currently): latest release
for more installation options see installation section
run Cracken:
generate all words of length 8 starting with uppercase followed by 6 lowercase chars and then a digit:
$ cracken -o pwdz.lst '?u?l?l?l?l?l?l?d'generate words from two wordlists with year suffix (1000-2999) ``
$ cracken --wordlist firstnames.txt --wordlist lastnames.lst --charset '12' '?w1?w2?1?d?d?d'create a Smartlist of size 50k from subwords extracted from rockyou.txt
$ cracken create -f rockyou.txt -m 50000 --smartlist smart.lstestimate the entropy of hybrid mask of the password HelloWorld123! using a smartlist
$ cracken entropy -f smart.lst 'HelloWorld123!'
hybrid-min-split: ["hello", "world1", "2", "3", "!"]
hybrid-mask: ?w1?w1?d?d?s
hybrid-min-entropy: 42.73
--
charset-mask: ?l?l?l?l?l?l?l?l?l?l?d?d?d?s
charset-mask-entropy: 61.97As of writing this, Cracken is probably the world's fastest wordlist generator:
Cracken has around 25% increased performance over hashcat's fast maskprocessor thats written in C.
Cracken can generate around 2 GB/s per core.
more details on benchmarks/
Why speed is important? A typical GPU can test billions passwords per second depending on the password hash function. When the wordlist generator produces fewer words per second than the cracking tool can handle - the cracking speed will degrade.
Cracken uses A* algorithm to analyze passwords very fast. it can find the minimal Hybrid-Mask of passwords file at rate of ~100k Passwords/sec (cracken entropy -f words1.txt -f words2.txt ... -p pwds.txt)
install Cracken or compile from source
download latest release from releases
Cracken is written in Rust and needs rustc to get compiled. Cracken should support all Platforms that Rust support.
installation instructions for cargo
there are two options building from source - installing with cargo from crates.io (preferred) or compiling manually from source.
install with cargo:
$ cargo install crackenclone Cracken:
$ git clone https://github.com/shmuelamar/crackenbuild Cracken:
$ cd cracken
$ cargo build --releaserun it:
$ ./target/release/cracken --help…………Cracken is licensed under MIT. THIS PROJECT MUST BE USED FOR LEGAL PURPOSES ONLY ⚖️
Cracken is under active development, if you wish to help below is this the partial roadmap for this project. Feel free to submit PRs and open issues.
No open issues yet, or sync has not completed.