1 // BruteForCer - A combination sequence generator
4 * I hope, that this can show you that BF is the most suxing idea.
5 * You can use GREP pipe, if you know part of password.
6 * Brutforcing is the only way to be the real hacker. (Please don't pwn me ;)
12 void inc(char *comb
, int i
, int maxno
) {
17 comb
[i
] = (comb
[i
] + 1) % maxno
;
19 inc(comb
, i
+ 1, maxno
);
25 int maxlen
= 10; // Lenght of string
26 // char full = 0; //0=Alphabet, 1=All possibilities
27 // char alpha[] = "01";
28 char alpha
[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890 "; // Alphabet
29 int alphmax
= sizeof(alpha
) - 1; // printf("%d\n",
33 for (i
= 0; i
<= maxlen
; i
++) {
38 while (comb
[maxlen
] == -1) {
39 for (i
= maxlen
- 1; i
>= 0; i
--)
41 putchar(alpha
[comb
[i
]]);
43 inc(comb
, 0, alphmax
);
This page took 0.568955 seconds and 4 git commands to generate.