Creating random Password list using Crunch in Kali Linux

Tutorial and Hacking. All Tutorial and hacked are for educational purpose only.
User avatar
Posts: 5
Joined: Thu Sep 20, 2018 8:28 am

Creating random Password list using Crunch in Kali Linux

Thu Sep 20, 2018 7:59 pm

Here is how you do it. To create a Random Password list using crunch

Code: Select all

# crunch 5 10 0123456789abcdefghijklmnopqrstuvwxyz -o Documents/pass.txt
BEWARE! Do not try to run that. It will generate a file that will easily fill your entire hard drive and be virtually unusable with normal hardware. However, if someone were able to use it, it could test every password with every combination of three to ten characters using all numbers and both the lower and upper case alphabet.

Just by adding the -o flag and specifying a destination, you can create your wordlist in the form of a properly formatted text file.

There is another way to handle this, though. Say you already have a good word list with popular bad passwords. There's actually one installed on Kali by default at /usr/share/wordlists called rockyou.txt. You just have to decompress it. What if you wanted to add your generated wordlist onto rockyou.txt to test additional possibilities in one shot. You can. Just redirect the output of Crunch into the file.

Code: Select all

# crunch 3 5 0123456789abcdefghijklmnopqrstuvwxyz >> /usr/share/wordlists/rockyou.txt
The file will be very large, so make sure you have space and actually want to test that many possibilities.

There isn't much else to say. Crunch is an excellent tool for creating wordlists. Like any security tool, it should be used intelligently and with discretion. In the case of really bad passwords, Crunch can create a short list quickly for other programs like Hydra to test. Future guides will explore the other tools that can use the wordlists created by Crunch to test for vulnerable passwords.

The quieter you become, the more you can hear...

Return to “KALI Linux”