Crunch is a tool for creating a password dictionary that is commonly used for violent cracking. The password generated using the Crunch tool can be sent to the terminal, file, or another program. The following describes the use of Crunch tool to create a password dictionary.
Use Crunch to generate a dictionary. The specific steps are as follows.
Start the crunch command. Execute the command as shown below.
The output information shows the version and syntax of the crunch command. The syntax for generating the password using the crunch command is as follows:
crunch [minimum length] [maximum length] [character set] [options]
The common options for the crunch command are shown below.
-o: Specifies the location of the output dictionary file.
-b: Specifies the maximum number of bytes to write to the file. The size can be specified KB, MB, or GB, but must be used with the -o START option.
-t: Sets the special format used.
-l: This option is used to identify some of the characters of the placeholder when the -t option specifies @,%, or ^.
(2) Create a password list file and save it on the desktop. The minimum length of the generated password list is 8, the maximum length is 10, and the ABCDEFGabcdefg0123456789 is used as the character set. Execute the command as follows:
root@kali:~# crunch 8 10 ABCDEFGabcdefg0123456789 –o /root/Desktop/
Notice: Detected unicode characters. If you are piping crunch output
to another program such as john or aircrack please make sure that program
can handle unicode input.
Do you want to continue? [Y/n] y
Crunch will now generate the following amount of data: 724845943848960 bytes
Crunch will now generate the following number of lines: 66155263819776
From the above output of the information, you can see will generate 659TB large files, a total of 66155263819776 line. After the above command is executed, a dictionary file named generatedCrunch.txt will be generated on the desktop. Since the combination of generated more passwords, it takes a long time.
the password dictionary file is generated, use the Nano command to open.Execute the command as follows:
root@kali:~# nano /root/Desktop/generatedCrunch.txt
After executing the above command, the generatedCrunch.txt file will be opened. The file contains all the passwords generated using the crunch command.
The post [How to] Create a password dictionary appeared first on Penetration Testing.