From 929056a383308b16b6b5ed176a367bb7961de0f3 Mon Sep 17 00:00:00 2001 From: weijiel6 <weijiel6@student.unimelb.edu.au> Date: Thu, 23 May 2019 18:46:37 +1000 Subject: [PATCH] find more passwords --- crack.c | 30 ++++++++++++++++++++++++++++++ out.txt | 8 ++++++++ 2 files changed, 38 insertions(+) diff --git a/crack.c b/crack.c index 5f03439..24070fc 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 f6f1b81..fb83790 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 -- GitLab