Code:
#include <stdio.h>
#include <stdlib.h>
int main(){
int i = 25;
char low_abc[] = {'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'};
/*
char CAP_ABC[] = {'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, b, c;
FILE *wList = fopen("zlRainTable.txt", "w");
for(a = 0; a <= i; a++){
fprintf(wList, "%c\n", low_abc[a]);
for(b = 0; b <= i; b++){
fprintf(wList, "%c %c\n", low_abc[a], low_abc[b]);
for(c = 0; c <= i; c++){
fprintf(wList, "%c %c %c\n", low_abc[a], low_abc[b], low_abc[c]);
}
}
}
fclose(wList);
}
this is what i got for a wordlist soo far. this code will generate list of words in a combintion of 1-3 letters a-z....... the CAP_ABC is commeted out for the reason of not being used. the next step is going to combine the CAPs and lows together... if any body wants to help out plz do. the reason im working with any 3 combation words is cause it doesnt make as big as file for testing after i get everything all set i will have it goto 7 letters since password are useally spilt into parts that have 7 digits in em. so if i had a password the was "aaabbbcccdddeee" than the pw would know as 3 parts "aaabbbc" "ccdddee" "e" right or am i wrong?
but here is my code for a rainbow table with Lower Case a-z 3 letter combination.
and agin if anybody would put in thier 2 cents that would be great.
ok i added CAP Suport. here is the code........
Code:
#include <stdio.h>
#include <stdlib.h>
int main(){
int i = 25; // size of abc+ABC arrays
char low_abc[] = {'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'};
char CAP_ABC[] = {'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, b, c; // max length of letter combinetions
FILE *wList = fopen("zlRainTable.txt", "w"); // the file it going to write to
for(a = 0; a <= i; a++){
fprintf(wList, "%c\n", low_abc[a]); //a
fprintf(wList, "%c\n", CAP_ABC[a]); //A
for(b = 0; b <= i; b++){
fprintf(wList, "%c%c\n", low_abc[a], low_abc[b]); // aa
fprintf(wList, "%c%c\n", CAP_ABC[a], CAP_ABC[b]); // AA
fprintf(wList, "%c%c\n", CAP_ABC[a], low_abc[b]); //Aa
fprintf(wList, "%c%c\n", low_abc[a], CAP_ABC[b]); //aA
for(c = 0; c <= i; c++){
fprintf(wList, "%c%c%c\n", low_abc[a], low_abc[b], low_abc[c]); //aaa
fprintf(wList, "%c%c%c\n", CAP_ABC[a], CAP_ABC[b], CAP_ABC[c]); //AAA
fprintf(wList, "%c%c%c\n", CAP_ABC[a], low_abc[b], low_abc[c]); //Aaa
fprintf(wList, "%c%c%c\n", low_abc[a], low_abc[b], CAP_ABC[c]); //aaA
fprintf(wList, "%c%c%c\n", low_abc[a], CAP_ABC[b], CAP_ABC[c]); //aAA
fprintf(wList, "%c%c%c\n", CAP_ABC[a], CAP_ABC[b], low_abc[c]); //AAa
fprintf(wList, "%c%c%c\n", CAP_ABC[a], low_abc[b], CAP_ABC[c]); //AaA
fprintf(wList, "%c%c%c\n", low_abc[a], CAP_ABC[b], low_abc[c]); //aAa
}
}
}
fclose(wList);
}