lunes, 6 de septiembre de 2010

Diccionario Hexadecimal

He creado un script en bash para generar un diccionario en Hexadecimal. El script genera todas las combinaciones posibles para 128bit en Hexadecimal.

El resultado son todas las combinaciones posibles para 32 dígitos de en Hexadecimal, aún no he probado sacar el volcado a un fichero para ver lo que ocupa.

for a in {a..f}{0..9} {0..9}{a..f}; do # 4bit
for b in {a..f}{0..9} {0..9}{a..f}; do # 8bit
for c in {a..f}{0..9} {0..9}{a..f}; do # 12bit
for d in {a..f}{0..9} {0..9}{a..f}; do # 16bit
for e in {a..f}{0..9} {0..9}{a..f}; do # 20bit
for f in {a..f}{0..9} {0..9}{a..f}; do # 24bit
for g in {a..f}{0..9} {0..9}{a..f}; do # 28bit
for h in {a..f}{0..9} {0..9}{a..f}; do # 32bit
for i in {a..f}{0..9} {0..9}{a..f}; do
for j in {a..f}{0..9} {0..9}{a..f}; do
for k in {a..f}{0..9} {0..9}{a..f}; do
for l in {a..f}{0..9} {0..9}{a..f}; do
for m in {a..f}{0..9} {0..9}{a..f}; do
for n in {a..f}{0..9} {0..9}{a..f}; do
for o in {a..f}{0..9} {0..9}{a..f}; do
for p in {a..f}{0..9} {0..9}{a..f}; do # 64bit
for q in {a..f}{0..9} {0..9}{a..f}; do
for r in {a..f}{0..9} {0..9}{a..f}; do
for s in {a..f}{0..9} {0..9}{a..f}; do
for t in {a..f}{0..9} {0..9}{a..f}; do
for u in {a..f}{0..9} {0..9}{a..f}; do
for v in {a..f}{0..9} {0..9}{a..f}; do
for w in {a..f}{0..9} {0..9}{a..f}; do
for x in {a..f}{0..9} {0..9}{a..f}; do
for y in {a..f}{0..9} {0..9}{a..f}; do
for z in {a..f}{0..9} {0..9}{a..f}; do
for aa in {a..f}{0..9} {0..9}{a..f}; do
for ab in {a..f}{0..9} {0..9}{a..f}; do
for ac in {a..f}{0..9} {0..9}{a..f}; do
for ad in {a..f}{0..9} {0..9}{a..f}; do
for ae in {a..f}{0..9} {0..9}{a..f}; do
for af in {a..f}{0..9} {0..9}{a..f}; do # 128bit
echo $a$b$c$d$e$f$g$h$i$j$k$l$m$n$o$p$q$r$s$t$u$v$w$x$y$z$aa$ab$ac$ad$ae$af;
done;
done;
done;
done;
done;
done;
done;
done;
done;
done;
done;
done;
done;
done;
done;
done;
done;
done;
done;
done;
done;
done;
done;
done;
done;
done;
done;
done;
done;
done;
done;
done;


Cuidado con lo que utilizáis este diccionario, porque podría utilizarse para descifrar redes Wifi con encriptación WPA.

Lo "normal" es que estas redes tengan únicamente 64bit de encriptación.