diff --git a/crack.c b/crack.c index 5f034398081805afaf497c5c536ad3d6b8a766d8..24070fc95e5c49f0c0c97f6c009b3dcc3586f264 100644 --- a/crack.c +++ b/crack.c @@ -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; } diff --git a/out.txt b/out.txt index f6f1b81ac7de3ed277b9f9d1c7dfa626be47c1fa..fb8379058880b225a8c61f2a9cae7edb38fef696 100644 --- a/out.txt +++ b/out.txt @@ -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