Crunch wordlist generator

Intro

         Crunch is a known and very capable wordlist generator. It works by using a predefined charset or a user defined one to generate all possible combinations and write them to file line by line. Wordlists are used in password attacks.

Disclaimer

          This tutorial is ONLY for educational reasons. Do not misuse this information. I am not responsible for the way you use this knowledge. And remember with great power comes great responsibility.

How to use

Syntax :
crunch <min-len> <max-len> [<charset string>] [options]
options, there are many options but these are basics :
          -f  [file path]   Path to the charset.lst file you will usually find in your installation directory.
          -o [file path]  File output, after that option you will need to specify the wordlist output path.
          -r    Resume process, you can use this switch to resume a previously stopped wordlist generation.
          -z  [gzip/bzip2/lzma/7z]  The z switch will compress the wordlist.
For more options, info and help see the man page :
man crunch

Tutorial

          In this tutorial we are going to generate a small numeric wordlist. If you want to make a diffrent kind of wordlist see the charlsi file.

To generate a seven digit numeric wordlist input the following comman in the terminal :  
crunch 0 7 /usr/share/crunch/charset.lst numeric -o numeric_wordlist_0-7.txt




















When the command is run it will show the wordlist size and then start generating it.















you can use ctrl + c to cancel and finally we can see the wordlist.



















Now this wordlist is ready to be used. But if you want to store it you should comperes it, you can use 7z to do it.
To compress the wordlist just type in the terminal :
7z a numeric_wordlist_0-7.zip numeric_wordlist_0-7.txt



















As you can see the compressed wordlist is smaller than the smaller one.

Download links

apt-get : sudo apt-get install crunch
arch Linux : sudo pacman -S crunch

Epilogue

If you have any questions or suggestions or if you noticed any mistakes or something i forgot don't hesitate to comment it bellow.

No comments:

Post a Comment