| Line 2: |
Line 2: |
| | == crunch== | | == crunch== |
| | Word list creation. Example: | | Word list creation. Example: |
| − | crunch 6 6 + + + -o 6charcapslowernumber.txt | + | crunch 6 6 + + + + -o 6charcapslowernumber.txt |
| − | + = wildchar: lower, caps, numbers
| + | generates: 6 char pwd list, lowercase, uppercase and numbers<br /> |
| − | generates: 6 char pwd list, lowercase, uppercase and numbers | + | + = wildchar, order is: lower, caps, numbers, special chars<br /> |
| | + | -o --> output file<br /> |
| | | | |
| − | === Charsets === | + | === Charsets (-f) === |
| | crunch 8 8 -f /usr/share/rainbowcrack/charset.txt mixalpha -o /root/alphawordlist.lst | | crunch 8 8 -f /usr/share/rainbowcrack/charset.txt mixalpha -o /root/alphawordlist.lst |
| | charset.txt: | | charset.txt: |
| Line 24: |
Line 25: |
| | ascii-32-65-123-4 = [ !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`{|}~] | | ascii-32-65-123-4 = [ !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`{|}~] |
| | alpha-numeric-symbol32-space = [ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()-_+=~`[]{}|\:;"'<>,.?/ ]</nowiki> | | alpha-numeric-symbol32-space = [ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()-_+=~`[]{}|\:;"'<>,.?/ ]</nowiki> |
| | + | Specifiying charsets on command line: |
| | + | crunch 6 6 0123456789ABCDEF |
| | + | escape char: \ |
| | + | ABC\!\@\#\$ |
| | | | |
| − | === Pattern === | + | === Patterns (-t) === |
| | crunch 8 8 -t @@@@@@56 -o /root/birthdaywordlist.lst | | crunch 8 8 -t @@@@@@56 -o /root/birthdaywordlist.lst |
| | -t <pattern> = Giving crunch the pattern @@@@@@56. This word generate passwords up to 8 characters (6 lower case variable and 4 fixed) long that all ended with 56.<br /> | | -t <pattern> = Giving crunch the pattern @@@@@@56. This word generate passwords up to 8 characters (6 lower case variable and 4 fixed) long that all ended with 56.<br /> |
| Line 33: |
Line 38: |
| | % -- numeric characters | | % -- numeric characters |
| | ^ -- special characters (including space)</nowiki> | | ^ -- special characters (including space)</nowiki> |
| | + | To specify diferent character set for @ follow this example where @ can be one of [123abcDEF]: |
| | + | crunch 8 8 123abcDEF -t TEST@@@@ |
| | + | Enclose the character set whith "" if space is included |
| | + | crunch "123abcDEF " -t TEST@@@@ |
| | + | |
| | + | To escape @ in a pattern use -l: |
| | + | crunch 6 6 -t b@d%%% -l @ |
| | + | crunch 8 8 -f charset.lst mixalpha -t pass@,%^ -l %^ |
| | + | will treat @ as a fixed character |
| | + | |
| | + | Pattern with limited characters: |
| | + | crunch 8 8 abcdef ABCDEF 12345 @#$%- -t @@,,%%^^ |
| | + | crunch 8 8 abcdef + 12345 + -t @@,,%%^^ |
| | + | === Divided output (-b | -c) === |
| | + | crunch 6 6 0123456789 -b 1mb -o START |
| | + | Creates 1mb files<br /> |
| | + | Size definition can be in: kb, mb, gb or kib, mib, gib (ib--> 1024 base; mb --> 1000 base)<br /> |
| | + | -o START must be specified as it is |
| | + | |
| | + | crunch 6 6 0123456789 -c 200000 -o START |
| | + | Divide into files with no more than 200000 lines |
| | + | |
| | + | === Stop at certain word (-e) === |
| | + | crunch 6 6 -t %%%%%% -e 333333 |
| | + | Creates 6 char numeric wordlist until 333333<br /> |
| | + | |
| | + | === Invert direction from left->wright to wright->left (-i) === |
| | + | |
| | + | === Words/Characters permutations (-p | -q) === |
| | + | -p: command line<br /> |
| | + | -q: file<br /> |
| | + | Words permutations: |
| | + | crunch 1 1 -p bird cat dog |
| | + | Letter permutations: |
| | + | crunch 1 1 -p abcd |
| | + | -p MUST be the last switch |
| | | | |
| − | Specifiying charsets on command line:
| + | crunch 1 1 -q test.txt |
| − | crunch 6 6 0123456789ABCDEF | + | being test.txt a word list (1 word per line) |
| − | escape char: \
| + | |
| − | ABC\!\@\#\$ | + | === Stop/Resume Wordlist creation (ctrl+c/... -r) === |
| | + | crunch 8 8 0123456789 -o test.txt |
| | + | Stop the creation with a Ctrl C, then restart with ; |
| | + | crunch 8 8 0123456789 -o test.txt -r |
| | + | Note: if -s was used it must be removed at the resume line |
| | + | |
| | + | === Start from specific position (-s) === |
| | + | crunch 7 7 0123456789 -s 9670549 -o test.txt |
| | + | Will start at 9670549 |
| | + | |
| | + | === Piping Crunch === |
| | + | use: -u | |
| | + | crunch 8 8 -t %%%%%%%% -u | aircrack-ng -e SSID -w - /pathto/capfile.cap |
| | + | crunch 8 8 -t %%%%%%%% -u | cowpatty -f - -r /pathto/capfile.cap -s SSID |
| | + | crunch 8 8 -t %%%%%%%% -u | pyrit -i - -r /pathto/capfile.cap -e ESSID attack_passthrough |
| | + | |
| | + | === Compressing (-z) === |
| | + | * gzip (quick) |
| | + | * bzip |
| | + | * lzma (smallest) |
| | + | crunch 6 6 -f charset.lst lalpha -o test.txt -z gzip |
| | + | crunch 6 6 -f charset.lst lalpha -o test.txt -z bzip2 |
| | + | crunch 6 6 -f charset.lst lalpha -o test.txt -z lzma |
| | | | |
| | == Hydra == | | == Hydra == |