A Practical guide to create password list Using crunch in kali linux

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

1.png

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:
2.png

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:
3.png

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:
4.png
Let's try to create a list with a specific pattern and of 1 MB in size:
crunch 10 10 -t @@@packt,,% -b 1mib -o START
Once it's, done, we will see a list of text files created with the pattern in the same folder:
5.png
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:
crunch 10 10 -t @@@packt,,% -b 1mib -o START -z gzip
The following screenshot shows the output of the preceding command:
6.png
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,

H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now
Logo
Center