From b891092153532628f1a187743a6caa2428e7b6a2 Mon Sep 17 00:00:00 2001 From: Will Pennell Date: Wed, 21 May 2014 21:52:43 -0400 Subject: [PATCH 1/2] Added crunch --- tools/crunch.md | 84 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 tools/crunch.md diff --git a/tools/crunch.md b/tools/crunch.md new file mode 100644 index 0000000..ac121aa --- /dev/null +++ b/tools/crunch.md @@ -0,0 +1,84 @@ +# Crunch + +Notes +------- +Crunch can create a wordlist based on criteria you specify. The outout from crunch can be sent to the screen, file, or to another program. +``` +usage: crunch [charset OR -f /path/to/charset.lst charset-name] [-o wordlist.txt] [-t [FIXED]@@@@] [-s startblock] [-c number] +``` + +Help Text +------- +``` +crunch version 3.5 + +Crunch can create a wordlist based on criteria you specify. The outout from crunch can be sent to the screen, file, or to another program. + +Usage: crunch [options] +where min and max are numbers + +Please refer to the man page for instructions and examples on how to use crunch. + +``` + +Example Usage +------- +From the sourceforge readme + +``` +usage: ./crunch [charset] +e.g: ./crunch 3 7 abcdef + +This example will compute all passwords between 3 and 7 chars +using 'abcdef' as the character set and dump it to stdout. + +usage: ./crunch [-f charset-name] [-o wordlist.txt or START] [-t [FIXED]@@@@] [-s startblock] + +Options: +-b : maximum bytes to write to output file. depending on the blocksize + files may be some bytes smaller than specified but never bigger. +-c : numbers of lines to write to output file, only works if "-o START" + is used, eg: 60 The output files will be in the format of starting + letter - ending letter for example: + crunch 1 5 -f /pentest/password/charset.lst mixalpha -o START -c 52 + will result in 2 files: a-7.txt and 8-\ .txt The reason for the + slash in the second filename is the ending character is space and + ls has to escape it to print it. Yes you will need to put in + the \ when specifying the filename. +-d : specify -d [n][@,%^] to suppress generation of strings with more + than [n] adjacent duplicates from the given character set. For example: + ./crunch 5 5 -d 2@ + Will print all combinations with 2 or less adjacent lowercase duplicates. +-e : tells crunch to stop generating words at string. Useful when piping + crunch to another program. +-f : path to a file containing a list of character sets, eg: charset.lst + name of the character set in the above file eg: + mixalpha-numeric-all-space +-i : inverts the output so the first character will change very often +-l : literal characters to use in -t @,%^ +-o : allows you to specify the file to write the output to, eg: + wordlist.txt +-p : prints permutations without repeating characters. This option + CANNOT be used with -s. It also ignores min and max lengths. +-q : Like the -p option except it reads the strings from the specified + file. It CANNOT be used with -s. It also ignores min and max. +-r : resume a previous session. You must use the same command line as + the previous session. +-s : allows you to specify the starting string, eg: 03god22fs +-t [FIXED]@,%^ : allows you to specify a pattern, eg: @@god@@@@ + where the only the @'s will change with lowercase letters + the ,'s will change with uppercase letters + the %'s will change with numbers + the ^'s will change with symbols +-u : The -u option disables the printpercentage thread. This should be the last option. +-z : adds support to compress the generated output. Must be used + with -o option. Only supports gzip, bzip, lzma, and 7z. + +This code can be easily adapted for use in brute-force attacks +against network services or cryptography. +``` + +Links +------- +[SourceForge](http://sourceforge.net/projects/crunch-wordlist/files/crunch-wordlist/) +[Creating Wordlists with Crunch](http://pentestlab.wordpress.com/2012/07/12/creating-wordlists-with-crunch/) From d6df3d456a8c8a90c063508edef5c52ebaf594f7 Mon Sep 17 00:00:00 2001 From: Will Pennell Date: Wed, 21 May 2014 21:53:32 -0400 Subject: [PATCH 2/2] Update index.md --- password/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/password/index.md b/password/index.md index 15242a8..6ddaa1b 100644 --- a/password/index.md +++ b/password/index.md @@ -12,7 +12,7 @@ Offline Attacks * [cachedump](../tools/cachedump.md) * [chntpw](../tools/chntpw.md) * [cmospwd](../tools/cmospwd.md) - * [crunch](../tools/_template.md) + * [crunch](../tools/crunch.md) * [dictstat](../tools/_template.md) * [fcrackzip](../tools/_template.md) * [hashcat](../tools/_template.md)