Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ..:: Elite-Mexicana ::.. ~~ Redes, Seguridad y Codigo Abierto ~~
- Coder: Diabliyo <darkdiabliyo@hotmail.com>
- Fichero: explota.c
- Source: Lenguaje C
- SO: Sistemas Unis ( cualquier distro )
- ~~~ Rebienta Passwords v1.0 en C ~~~
- Programa que utiliza Bruteforcing para explotar password introducirdo por le usuario.
- Mas que nada es un algoritmo basico en el cual se realizan comparaciones desde 1 caracter hasta 5 caracteres.
- Este crackeador de passwords solo lustra la forma de como conseguir un password realizando bruteforcing :D,
- unicamente soporta cadenas hasta maximo 6 caracteres :D... de 0-9, A-Z y a-z :D
- http://www.iespana.es/darkdiabliyo/index.php
- Codigo Fuente para Unix ;).
- Slackware, el mejor !!!
- */
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <time.h>
- #define N 7
- void inicializar( char *pwd );
- void inicializar( char *pwd )
- {
- int i;
- for( i=0; i<N; i++, *pwd++ )
- *pwd='\0';
- }
- int main()
- {
- char bruteforcing[]={ '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', '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 a[N], c[N];
- char cad[N], pwd[N];
- clock_t reloj1, reloj2;
- float tiempo;
- system( "clear" );
- inicializar( pwd );
- printf( "Buffer de Pass: %i", sizeof(pwd)-1 );
- printf( "\nPassword a Explotar: " );
- scanf( "%s", cad );
- reloj1= clock(); /*captura tiempo de inicio*/
- for( a[0]=N, c[0]=0; c[0]<=sizeof(bruteforcing); c[0]++ )
- {
- for( a[1]=a[0]-1, c[1]=0; c[1]<=sizeof(bruteforcing); c[1]++ )
- {
- for( a[2]=a[1]-1, c[2]=0; c[2]<=sizeof(bruteforcing); c[2]++ )
- {
- for( a[3]=a[2]-1, c[3]=0; c[3]<=sizeof(bruteforcing); c[3]++ )
- {
- for( a[4]=a[3]-1, c[4]=0; c[4]<=sizeof(bruteforcing); c[4]++ )
- {
- for( a[5]=a[4]-1, c[5]=0; c[5]<=sizeof(bruteforcing); c[5]++ )
- {
- for( a[6]=a[5]-1, c[6]=0; c[6]<=sizeof(bruteforcing); c[6]++ )
- {
- for( a[7]=a[6]-1, c[7]=0; c[7]<=sizeof(bruteforcing); c[7]++ )
- {
- if( !strcmp( cad, pwd ) )
- {
- reloj2= clock(); /*captura tiempo de fin*/
- tiempo= ((float)reloj1-(float)reloj2)/CLOCKS_PER_SEC;
- printf( "\n\n\t*****************************************" );
- printf( "\n\t*\tPassword Reventado es: %s\t*\n", pwd );
- printf( "\n\t*\tTiempo: %.2f segundos\t*\n", tiempo );
- printf( "\t*****************************************\n\n" );
- getchar();
- exit(0);
- }
- pwd[a[7]]=bruteforcing[c[7]];
- }
- pwd[a[6]]=bruteforcing[c[6]];
- }
- pwd[a[5]]=bruteforcing[c[5]];
- /*printf( "\nCalando combinacion: %s", pwd );*/
- }
- pwd[a[4]]=bruteforcing[c[4]];
- }
- pwd[a[3]]=bruteforcing[c[3]];
- }
- pwd[a[2]]=bruteforcing[c[2]];
- }
- pwd[a[1]]=bruteforcing[c[1]];
- }
- pwd[a[0]]=bruteforcing[c[0]];
- }
- printf( "\n\nPassword No Encontrado" );
- getchar();
- return 0;
- }
Add Comment
Please, Sign In to add comment