Categorías
 Ayuda - FAQ
 Medios Online
·C5N
 Navegante
 IP: 38.107.191.103
 PAÍS: Estados Unidos
 NAV: Desconocido
 HOST: 107.191.103
Categoría: Programación, Java
Recurso subido por: aladinn

Rango: Aldeano
Nivel: 1
>> Ver perfil <<
Fecha de subida: 2010-07-29
Registrese gratis aquí para poder hablar con esta persona

Hola amigos, les dejo un algoritmo de fuerza bruta que encontre en la web el cual me fue de mucha utilidad para la construccion de una aplicacion en Java el cual debia revelar la las password de un servidor, espero les sirva.
Saludos!

Código:
//import java.*;

public class brute {

char[] canUse = {
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
'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'
};

int maxlen = 3;

public static void main (String[] args) {

brute b = new brute();
}


public brute() {
int k = 0;

while (k < canUse.length) {
nextString(new Character(canUse[k]).toString());
k ;
}

}


private void nextString(String s) {

int i = 0;

System.out.println(s);

while (i< canUse.length) {
System.out.println(s new Character(canUse[i]).toString());

if (new String(s new Character(canUse[i]).toString()).length() <= maxlen) {nextString(s new Character(canUse[i]).toString());}
i ;
}

}
}


:: [1] http://Www.aladinn.com.ar... ::

 Post relacionados  Los post más votados
  ¿Te resulto útil esta información?  Si No
* Nombre: 
* Comentario: 

Tu IP : 38.107.191.103 - Estás utilizando Desconocido


 Dk
2010-08-05 19:44:08 
Excelente. Yo utilizaba Java un tiempo.
Pablo, te agregue a mi email. Entre en tu página. Bueno te aviso!.
Un abrazo espero que estes muy bien. Me gustaria saber de vos loco.


 Rivas
2010-08-05 00:57:13 
NUNCA PROGRAME EN JAVA!!!
PERO SIEMPR EME INTERESOO
TENGO Q SETEAR LAS VARIABLES DE LA PC NO?


 Extra
  · MasterClasificados.com
  · RubrosNorte.com
  · RJD-SyStemS.com
  · MB-Frias.com


 APLICACIONES ONLINE - Herramientas y Utilidades