Skip to content
Snippets Groups Projects
Commit 929056a3 authored by weijiel6's avatar weijiel6
Browse files

find more passwords

parent b0ea944b
Branches master
No related tags found
No related merge requests found
Pipeline #2762 failed
......@@ -184,6 +184,36 @@ int main( int argc, char **argv )
}
long_guess[7] = '\0';
char alpha_guess[7];
int alpha_secret_num;
SHA256_CTX alpha_ctx;
BYTE alpha_data[SHA256_BLOCK_SIZE];
for(int i = 97; i < 124; i++) {
for(int j = 97; j < 124; j++) {
for(int l = 97; l < 124; l++) {
for(int k = 97; k < 124; k++) {
for(int n = 97; n < 124; n++) {
for(int m = 97; m < 124; m++) {
sprintf(alpha_guess, "%c%c%c%c%c%c", i, j, l, k, n, m);
//printf("%s\n",guess);
sha256_init(&alpha_ctx);
sha256_update(&alpha_ctx, (BYTE*)alpha_guess, strlen(alpha_guess));
sha256_final(&alpha_ctx, alpha_data);
if (check_guess(long_secrets, alpha_data, pwd6_size) > 0) {
alpha_secret_num = check_guess(long_secrets, alpha_data, pwd6_size);
alpha_secret_num = alpha_secret_num + 10;
//printf("long secret num should be %d\n", long_secret_num);
printf("%s %d\n",alpha_guess, alpha_secret_num);
fprintf(fp1, "%s %d\n", alpha_guess, alpha_secret_num);
}
}
}
}
}
}
}
alpha_guess[7] = '\0';
return 0;
}
......
......@@ -13,3 +13,11 @@ weij 7
369258 13
379258 12
469258 29
asdzxc 27
fastca 21
kakash 17
newcas 16
oeotak 23
wdovan 20
weijie 19
wicked 30
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment