From 2c14f8585098fd26ca21be90a6ec8d5b65353c95 Mon Sep 17 00:00:00 2001
From: aneesh <achattaraj@student.unimelb.edu.au>
Date: Fri, 24 May 2019 17:30:11 +1000
Subject: [PATCH] tt

---
 crack.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/crack.c b/crack.c
index ea6b4d0..84b7033 100644
--- a/crack.c
+++ b/crack.c
@@ -52,7 +52,7 @@ SHA256_CTX ctx;
 
   } 
 }
-void variations(char *word_list_file, int hashes[30][32])
+void variations(char *word_list_file, int hashes[30][32],int status)
 {
   SHA256_CTX ctx;
     BYTE buffer[SHA256_BLOCK_SIZE];
@@ -63,7 +63,7 @@ void variations(char *word_list_file, int hashes[30][32])
     word_list=fopen(word_list_file, "rb");
 
     while ( fgets(password, 7, word_list) != '\0'){
-      if (count==30)
+      if (count==30 && status!=3)
       {
         break;
       }
@@ -391,7 +391,7 @@ void crack6(char *word_list_file, int hashes[30][32])
        b++;
    }
    crack6("100k_passwords.txt",hashes);
-   variations("common_passwords1.txt",hashes);
+   variations("common_passwords1.txt",hashes,0);
    printRandomString(hashes);
 
    
@@ -435,6 +435,7 @@ if (argc==3)
        b++;
    }
    crack6(argv[2],hashes);
+   variations("common_passwords1.txt",hashes,3);
    
 
 
-- 
GitLab