Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
final sobre o assunto. Este aqui apenas uma traduo, conforme podero ver as referencias
no final do arquivo. Ainda tem algumas coisas para terminar de traduzir, no conclui por
falta de tempo, pois fui traduzindo manualmente cada pargrafo. Se mais algum puder
ajudar, fique a vontade em enviar a mim, mesmo que seja feito o mnimo e eu referenciarei
aqui. Meu email rafig38@gmail.com . Podem me chamar de rafig.
CRUNCH
NOME:crunch
DESCRIO:
Crunch pode criar uma lista de palavras baseada no critrio especificado por voc. A sada do
crunch pode ser enviada para a tela, para um arquivo ou para outro programa.
Sintaxe: crunch <min-len> <max-len> [charset OR -f /path/to/charset.lst charset-name] [-o
wordlist.txt] [-t [FIXED]@@@@] [-s startblock] [-c number]
OBS: Aqui vai uma boa dica de informtica. Numa sintaxe, todo valor que vier entre < e > so
valores obrigatrios e todo valor que vier entre [ e ] so valores opcionais.
PARAMETROS:
min-len o comprimento mnimo da palavra que voc quer fazer o crunch iniciar. Esta opo
exigida mesmo para parmetros os quais no sero usados.
max-len o comprimento maximo da palavra que voc quer fazer o crunch terminar. Esta opo
exigida mesmo para parmetros os quais no sero usados.
[charset] opcional. Voc pode especificar o conjunto de caracteres para o crunch usar diretamente
na linha de comando ou se voc deixar em branco, o crunch usar o conjunto de caracteres padro.
A ordem dever ser caracteres minsculos, maisculos, nmeros e smbolos. Se voc no seguir
esta ordem, voc no ir obter o resultado esperado. Voc deve especificar tambm valores para o
tipo de caracter ou um sinal de mais.
OBS.: Se voc quiser usar espaos em branco no conjunto de caracteres especificados por voc,
ento dever coloc-lo entre aspas, assim: abc . Veja os exemplos 3, 11, 12 e 13.
[-b number[type]] opcional e especifica o tamanho do arquivo gerado. Somente funciona se usar a
opo -o START. Exemplo: Vamos gerar um arquivo de 60MB:
# . / crunch 4 5 -b 20mib o START
O resultado ser a gerao de 4(quatro) arquivos: aaaa-gvfed.txt, gvfee-ombqy.txt, ombqz-wcydt.txt,
wcydu-zzzzz.txt.
Os valores vlidos so do tipo kb, mb, gb, kib, mib, e gib. Os primeiros 3(trs) tipos so baseados
em 1000, enquanto que os 3(tres) ltimos so baseados em 1024.
OBS.: No existe espao entre o nmero e o tipo. Por exemplo, 500mb est correto, 500 mb no
est correto.
[-c number] opcional e especifica o nmero de linhas do arquivo gerado. Somente funciona se
usar a opo -o START. Exemplo: Vamos gerar um arquivo de 60 linhas:
#./crunch 1 1 -f /pentest/password/crunch/charset.lst mixalpha-numeric-all-space -o START -c 60
O resultado sero 2(dois) arquivos:
a-7.txt and 8-\ .txt. A razo da barra invertida no segundo arquivo que o comando ls gera um
scape quando imprimi na tela nomes de arquivos com espaos em branco no nome. Voc sempre
precisar colocar uma \ (barra invertida) quando especificar o nome de um arquivo em que o ltimo
caracter um espao em branco.
outro programa.
[-z gzip, bzip2, or lzma] opcional e comprime a sada do arquivo gerado com a opo o. Os
parmetros vlidos so gzip, bzip2, ou lzma.
Gzip mais rpido mas tem uma compresso mnima. Bzip mais lento que gzip mas tem melhor
compresso que gzip. Izma o mais lento mas o que tem melhor compresso.
EXEMPLOS
Exemplo 1:
crunch 1 8
crunch mostrar na tela uma wordlist que comea em a e termina em zzzzzzzz.
Exemplo 2:
crunch 1 6 abcdefg
crunch mostrar na tela uma wordlist usando o conjunto de caracter abcdefg que comea em a e
termina em gggggg.
Exemplo 3:
crunch 1 6 abcdefg\
there is a space at the end of the character string. In order for crunch to use the space you will need
to escape it using the \ character. In this Exemplo you could also put quotes around the letters and
not need the \, i.e. "abcdefg ".
Crunch will display a wordlist using the character set abcdefg that starts at a and ends at (6 spaces)
Exemplo 4:
crunch 1 8 -f charset.lst mixalpha-numeric-all-space -o wordlist.txt
crunch will use the mixalpha-numeric-all-space character set from charset.lst and will write the
wordlist to a file named wordlist.txt. The file will start with a and end with " "
Exemplo 5:
crunch 8 8 -f charset.lst mixalpha-numeric-all-space -o wordlist.txt -t @@dog@@@ -s cbdogaaa
crunch should generate a 8 character wordlist using the mixalpha-number-all-space characterset
from charset.lst and will write the wordlist to a file named wordlist.txt. The file will start at
cbdogaaa and end at " dog "
Exemplo 6:
crunch 2 3 -f charset.lst ualpha -s BB
crunch with start generating a wordlist at BB and end with ZZZ. This is useful if you have to stop
generating a wordlist in the middle. Just do a tail wordlist.txt and set the -s parameter to the next
word in the sequence.
Be sure to rename the original wordlist BEFORE you begin as crunch will overwrite the existing
wordlist.
Exemplo 7:
crunch 4 5 -p abc
Os numeros no so processados mas so necessrios.
crunch gerar abc, acb, bac, bca, cab, cba.
Exemplo 8:
crunch 4 5 -p dog cat bird
Exemplo 9:
crunch 1 5 -o START -c 6000 -z bzip2
crunch gerar o arquivo bzip2 comprimido com cada arquivo contendo 6000 palavras. O nome do
arquivo comprimido ser primeira_palavra-ultima_palavra.txt.bz2
4. Starting in 2.7 if you are generating a file then every 10 seconds you will receive the % done.
5. Starting in 3.0 I had to change the -t * character to a , as the * is a reserved character. You could
still use it if you put a \ in front of the *. Yes it breaks crunch's syntax and I do my best to avoid
doing that, but in this instance it is easier to make the change for long term support.
6. Some output is missing. A file didn't get generated.
The mostly explaination is you ran out of disk space. If you have verified you have plenty of disk
space then the problem is most likely the filename begins with a period. In Linux filenames that
begin with a period are hidden.
To view them do a ls -l .*
7. Crunch says The maximum and minimum length should be the same size as the pattern you
specified, however the length is set correctly.
This usually means your pattern contains a character that needs to be escaped. In bash you need to
escape the followings:
&, *, space, \, (, ), |, ', ", ;, <, >.
The escape character in bash is a \. So a pattern that has a & and a * in it would look like this:
crunch 4 4 -t \&\*d@
An alternative to escaping characters is to wrap your string with quotes. For Exemplo:
crunch 4 4 -t "&*d@"
If you want to use the " in your pattern you will need to escape it like this: crunch 4 4 -t "&*\"@"
Please note that different terminals have different escape characters and probably have different
characters that will need escaping. Please check the manpage of your terminal for the escape
characters and characters that need escaping.
AUTHOR
This manual page was written by bofh28@gmail.com
Crunch version 1.0 was written by mimayin@aciiid.ath.cx all later versions of crunch have been
updated by bofh28@gmail.com
FILES
GPL.TXT
Makefile
charset.lst
crunch.1
crunch.c
$Home/pentest/passwords/crunch
BUGS
If you find any please email bofh28@gmail.com or post to http://www.backtrack-linux.org
COPYRIGHT
2009, 2010, 2011 bofh28 bofh28@gmail.com
This file is a part of Crunch.
Crunch is free software: you can redistribute it and/or modify it under the terms of the GNU
General Public License as published by the Free Software Foundation, version 2 only of the
License.
Crunch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Crunch. If not,
see http://www.gnu.org/licenses/ .