-->

Wpa C Code

Wpa C Code

#include <stdio.h>

FILE *passwords;

int main(void){

char filename[17]="8charlistAAA.txt";
char password[9]="AAAAAAAA"; //Array for passwords
//65 to xc is ASCII majuscule chars
int iterations1=65;  //set the iterations loop vars, laid out each 1 yesteryear default at 65 = Influenza A virus subtype H5N1 inwards ASCII
int iterations2=65;
int iterations3=65;
int iterations4=65;
int iterations5=65;
int iterations6=65;
int iterations7=65;
int iterations8=65;


printf("SKY default WPA password listing creator\n--------------------------------------\n\n");
printf("This plan volition generate the default heaven wireless WPA keys for role with\nAircrack.\n");
printf("Due to the massive files involved, this plan volition gernerate only\na setnumber of permutations inwards the degree AAAXXXXX where AAA are user chosen.");
printf("\n\nThe plan volition decease along to generate all lists later on the specified \nAAA until ZZZZZZZZ is reached");
printf("\n\nFor event if y'all wishing to generate from CBDAAAAA to ZZZZZZZZ\nthen at the prompts larn inwards C thence B thence D\n\n");
system("pause");     //Wait for user entry to continue     
system("cls");       //clear te screen
printf("SKY default WPA password listing creator\n--------------------------------------\n\n");
printf("Please initialize the showtime password grapheme (in majuscule please): ");
fflush(stdin);       //clear the input buffer
scanf("%c",&password[0]);      //Read the showtime user grapheme entry too shop to chemical component subdivision 0 of password array
printf("\nPlease initialize the 2nd password grapheme (in majuscule please): ");
fflush(stdin); 
scanf("%c",&password[1]);      //Read the 2nd user grapheme entry too shop to chemical component subdivision 1 of password array
printf("\nPlease initialize the 2nd password grapheme (in majuscule please): ");
fflush(stdin); 
scanf("%c",&password[2]);      //Read the 3rd user grapheme entry too shop to chemical component subdivision ii of password array
filename[9]=password[0];
filename[10]=password[1];
filename[11]=password[2];

//the next code volition loop through until all permutations are created.  Separate files volition live on created to boundary errors too huge files.

printf("\n\nPassword listing %s is beingness created.  Please wait...\n\n",filename);      
for(iterations1=password[0];iterations1<91;iterations1++){
for(iterations2=password[1];iterations2<91;iterations2++){
for(iterations3=password[2];iterations3<91;iterations3++){
                                                 filename[9]=iterations1;
                                                 filename[10]=iterations2;
                                                 filename[11]=iterations3;
                                                 if((passwords = fopen(filename, "w+"))==NULL)  //Open a novel file
                                                               {
                                                               printf("\n\nError Creating TXT file\n\n");
                                                               } 
                                                 printf("\nPassword listing %s created.",filename);
for(iterations4=65;iterations4<91;iterations4++){
for(iterations5=65;iterations5<91;iterations5++){
for(iterations6=65;iterations6<91;iterations6++){       
for(iterations7=65;iterations7<91;iterations7++){
for(iterations8=65;iterations8<91;iterations8++){
password[0]=iterations1;
password[1]=iterations2;
password[2]=iterations3;
password[3]=iterations4;
password[4]=iterations5;
password[5]=iterations6;
password[6]=iterations7;
password[7]=iterations8;                                          
fprintf(passwords,"%s\n",password);                                                                                      
}}}}}}
fclose(passwords);  //close the concluding used file
}}
printf("\n\nComplete!\n\n");
system("pause");  
}
Blogger
Disqus
Pilih Sistem Komentar

No comments

Advertiser