Crunch In renal penetration testing and various brute force cracking, we need a variety of password dictionaries. The dictionaries on github are diverse, but none of them suit you. So, how to make your own dictionary file? Crunch is a tool developed in C language that can create customizable word lists. In this article, we will explain the use of Crunch in detail.
Installation
Crunch is installed on Kali Linux by default. If other systems are also installed using the apt command.
apt-get install crunch runs crunch to generate dictionary, requiring us to enter the minimum and maximum values of the word to be generated and the output file, which will automatically take the lowercase alphabet as a character set and generate the dictionary.
Example 1
Generate the shortest length and the longest length is 3 lengths.
crunch 1 3 -o kali.txt
Custom letters and numeric characters
Of course, we can combine letters and numbers. as follows:
crunch 5 7 pass123 -o kali.txt code description:
Arrange and combine the seven letters and numbers of p a s s 1 2 3 to generate a dictionary with the shortest 5 digits and the longest 7 digits.
Create a dictionary with symbols
@ : Will insert lowercase characters
, will insert capital characters
% : will insert the number
^ : will caret
Fixed Word + 3 Numbers
Suppose we want to fix the first 3 letters as bbs, and insert random number combinations in each word with 6 characters and the last 3 positions, then we can do it by specifying the pattern.
crunch 6 6 -t bbs%%% -o num.txt
Fixed Word + 3 capital letters
Suppose we want to fix the first 3 letters as bbs, and insert a random combination of capital letters in each word with 6 characters and the last 3 positions, then it can be done in the following way
crunch 6 6 -t bbs, -o kali.txt
Fixed Word + 3 lowercase letters
crunch 6 6 -t bbs@@@ -o kali.txt
Fixed Word + 3 Symbols
crunch 6 6 -t bbs^^^ -o kali.txt
Lowercase letters (a, b or c) + digits (1, 2 or 3) + symbols (ANY)
In the following example, abc and 123 are used. Also use the + operator. We want to create a dictionary where the first character is lowercase, the number is the second character, and the symbol is the third character, but only a, b or c is the character, 1, 2 or 3 is the number and any random symbol at the last position, the command is as follows:
crunch 3 3 abc + 123 -t @%^ -o kali.txt
Two numbers (1, 2, or 3) + lowercase letters (ANY) + symbols (ANY)
Similarly, to create a 2-digit digit 4-character pattern per word (including only 1, 2, or 3) + lowercase letters + symbols, we can do this:
crunch 4 4 + + 123 + -t %%@^ -o kali.txt At this time + + plays two placeholders
Compressed word list
Usually, word lists are too large in text formats, and gzip can be used to compress it to more than 60-70%.
crunch 4 7 Pass123 -z gzip -o START
Recommended Comments