Archivo

viernes, 4 de febrero de 2011

Generador de claves para Comtrend


Cortito como patada d chancho, aquí les dejo un script para generar claves del router utilizado por Movistar y Jazztel

#!/bin/bash                                                                    
                                                                               
echo CalcWLAN by a.s.r                                                         
                                                                               
if [ $# -ne 2 ]                                                                
then                                                                           
        echo "Usage: $0 <ESSID> <BSSID>"                                       
        echo                                                                   
        echo "Example: $0 WLAN_C58D 64:68:0C:C5:C5:90"                         
        exit 1                                                                 
fi                                                                             
                                                                               
HEAD=$(echo -n "$1" | tr 'a-z' 'A-Z' | cut -d_ -f2)                                             
BSSID=$(echo -n "$2" | tr 'a-z' 'A-Z' | tr -d :)                                                
BSSIDP=$(echo -n "$BSSID" | cut -c-8)                                          
KEY=$(echo -n bcgbghgg$BSSIDP$HEAD$BSSID | md5sum | cut -c-20)                 
                                                                               
echo "La puta clave es $KEY"



Para trabajar con el generador online visiten la web http://kz.ath.cx/wlan/ donde tmb podrán ver el código en varios sabores (python, php, javascript, etc =)
Publicar un comentario