Crunch is a word list generator. It uses permutations and combinations to generate all possible combinations of the supplied character set.
To learn about Crunch follow the given steps:
- Crunch is preinstalled with Kali, and we can launch it with this command:
crunch -h
- As we see, it is easy to use to generate a password list of a minimum of two characters and maximum of two characters containing only
abcdef
, and we can use the following command:
crunch 2 2 abcdef
We can see that the word list has been generated:
- To save it in a file, we can use the
-o
switch. Crunch also has an inbuilt list containing a predefined character set. It can be found at/usr/share/crunch/charset.lst
.
- To use a charset, we use the
-f
switch:
crunch 2 2 -f /usr/share/crunch/charset.lst lalpha
The following screenshot shows the output of the preceding command:
- This will generate a list of a minimum length and maximum length of
2
, containing lowercase alphabets...