Crunch — Custom Wordlist Generator

Crunch — Custom Wordlist Generator

Wordlists are the very crucial things in brute-force attacks. A brute-force password attack is a attack in which an attacker uses a script to repeatedly try to log into an account using a list of possible passwords until they successfully logged in.

In this tutorial we are going to learn generating our custom made wordlist with crunch, it uses permutation and combinations to create all possible combinations of the given character set. Crunch comes pre-installed with our Kali Linux environment.

As always we start from the terminal window and type following command to run crunch:

crunch

The screenshot of the command is following:

Now we are going to make a wordlist by using following command :

crunch 4 5 ABCDEFGHIJKLMNOPQRSTUVWXYZ -O /root/Desktop/wordlist.txt

The output of preceding command is following:

In the command the first number (4) is for the minimum length of the possible password we want, and the second number (5) is for the maximum number of possible password we want to generate, and we use all capital characters. We also can use small characters and numbers and symbols, and then -o for output directory and name of the wordlist. As we can see the file size is 70 MB and there are 12338352 possible passwords.

We can use capital letters, small letters, numbers, symbols etc to generate a bigger wordlist. like the following command:

crunch 4 8 ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@,.*&%# -O /root/Desktop/wordlist.txt

The screenshot of the command is following:

KP AKA Koushik Pal is a Security researcher and specialist focused on educating about Linux for cybersecurity and URL‑masking vulnerabilities. Creator of MaskPhish, a well‑known open‑source bash-based URL‑masking tool. Linux enthusiasts Active speaker, trainer, and advocate for secure web practices.

2 comments

comments user
Unknown

how to stop the process of crunch?i mean what key to press?

comments user
Kali Linux

You can stop the process by pressing CTRL+C.

Post Comment