| Crates.io | pwfuzz-rs |
| lib.rs | pwfuzz-rs |
| version | 0.2.0 |
| created_at | 2022-06-02 06:38:12.94545+00 |
| updated_at | 2023-10-29 07:24:12.367499+00 |
| description | Password list mutator/expander |
| homepage | |
| repository | https://github.com/mttaggart/pwfuzz-rs |
| max_upload_size | |
| id | 598694 |
| size | 17,820 |
A Rust-based password mutator for brute force attacks
This tool works, but was mainly an experiment. Please do not expect frequent updates to it.
So you're brute-forcing a web app or other target. Sure you have a wordlist, maybe even a large one, but what about variations? Tossing ! or year numbers on there? Adding random numbers? It would be great to have an easy way to mutate existing password lists to add variations. Hashcat has rule-based attacks, but what about for non-hash passwords?
That's what pwfuzz-rs is about.
There are binaries available for Linux and Windows over on Releases.
You can of course build from source, but hey, it's a Rust tool, so you can also just cargo install pwfuzz-rs!
pwfuzz-rs -w wordlist.txt -r rules.json [-i iterations]
pwfuzz-rs accepts the following arguments:
-w --wordlist: Path to wordlist-r --rules-file: Path to JSON rules file-i --iterations: Number of iterations to run mutations-h --help: HelpThe output will be to stdout, but you can use any Unix tool you like to redirect it!
Let's talk about Rules.
pwfuzz-rs supports the following rules:
Append [string]: Append the given stringPrepend [string]: Append the given stringUpper: Uppercase the wordLower: Lowercase the wordInsert [string] [idx]: Insert the given string and index idx (Skips on index failure)AppendRandom [range]: Append a random number from 0-rangePrepend [range]: Append a random number from 0-rangeThe Rules Files is a JSON file that expects an author key and a rules key. This example shows all rule variants.
{
"author": "Your Name <Your Email>",
"rules": [
{
"Append": "!"
},
{
"Prepend": "1"
},
"Upper", // no args means no object needed
"Lower",
{
"Insert": ["%", 4] // inserts "%" at index 4
},
{
"AppendRandom": 100
},
{
"PrependRandom": 100
}
]
}
Given the list:
letmein
iamgod
password
These rules produce:
letmein
iamgod
password
letmein!
iamgod!
password!
1letmein
1iamgod
1password
LETMEIN
IAMGOD
PASSWORD
letmein
iamgod
password
letm%ein
iamg%od
pass%word
letmein20
iamgod17
password79
18letmein
97iamgod
65password
But what if we want to apply rules on rules on rules on rules?
I got you, fam.
Passing -i allows you to iteratively apply rules to newly-generated mutations. So if we pass -i 3 to the above list, we get 1500 unique passwords!