Skip to content
Snippets Groups Projects
Commit 9dd391e1 authored by aneesh's avatar aneesh
Browse files

yo 
parent 2c14f858
No related branches found
No related tags found
No related merge requests found
Pipeline #2884 failed
...@@ -52,7 +52,7 @@ SHA256_CTX ctx; ...@@ -52,7 +52,7 @@ SHA256_CTX ctx;
} }
} }
void variations(char *word_list_file, int hashes[30][32],int status) void variations(char *word_list_file, int hashes[30][32])
{ {
SHA256_CTX ctx; SHA256_CTX ctx;
BYTE buffer[SHA256_BLOCK_SIZE]; BYTE buffer[SHA256_BLOCK_SIZE];
...@@ -63,7 +63,7 @@ void variations(char *word_list_file, int hashes[30][32],int status) ...@@ -63,7 +63,7 @@ void variations(char *word_list_file, int hashes[30][32],int status)
word_list=fopen(word_list_file, "rb"); word_list=fopen(word_list_file, "rb");
while ( fgets(password, 7, word_list) != '\0'){ while ( fgets(password, 7, word_list) != '\0'){
if (count==30 && status!=3) if (count==30)
{ {
break; break;
} }
...@@ -391,7 +391,7 @@ void crack6(char *word_list_file, int hashes[30][32]) ...@@ -391,7 +391,7 @@ void crack6(char *word_list_file, int hashes[30][32])
b++; b++;
} }
crack6("100k_passwords.txt",hashes); crack6("100k_passwords.txt",hashes);
variations("common_passwords1.txt",hashes,0); variations("common_passwords1.txt",hashes);
printRandomString(hashes); printRandomString(hashes);
...@@ -435,7 +435,7 @@ if (argc==3) ...@@ -435,7 +435,7 @@ if (argc==3)
b++; b++;
} }
crack6(argv[2],hashes); crack6(argv[2],hashes);
variations("common_passwords1.txt",hashes,3); variations("common_passwords1.txt",hashes);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment