Crunch is basically a word list generator tool which enables us for permutations and combinations to generate all possible combinations of the supplied/given character set.
To learn about simple way to create word list using Crunch in Kali Linux follow the given steps:
Crunch is available in Kali, and we can launch it with this command:
crunch –h
Reveal spoiler
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. Crunch also has a -t switch, which can be used to create a word list of a specific pattern:
@: This will insert lowercase characters
,: This will insert uppercase characters
%: This will insert numbers
^: This will insert symbols
Switch -b can be used to specify the size of the file you want to create:
Let's try to create a list with a specific pattern and of 1 MB in size:
Once it's, done, we will see a list of text files created with the pattern in the same folder:
The -z flag can be used to create a word list and save it in a compressed file. The compression is done on the go:
The following screenshot shows the output of the preceding command:
Thanks for reading now let me recommend you some other practical guides about penetration testing of Remote Access Protocols, Remote Desktop Protocol, SSH Network Protocol, Network Routers, Wordpress website using WPSeku, crunch 10 10 -t @@@packt,,% -b 1mib -o START crunch 10 10 -t @@@packt,,% -b 1mib -o START -z gzip