Skip to content
Snippets Groups Projects
Commit 4aafe94d authored by Abhisha Nirmalathas's avatar Abhisha Nirmalathas
Browse files

debug

parent 646ef06f
Branches
No related tags found
No related merge requests found
......@@ -64,12 +64,13 @@ int popular_character_guess_four(HashTable *ht, Passwords* solved){
SHA256_CTX ctx;
int hash;
char line[20];
memset(line, 0, 20);
FILE *file = fopen("common_password_frequency.txt", "r");
char frequent_characters[60];
memset(frequent_characters, 0, 60);
int index = 0;
// Ensures all passwords havent been guessed
if (remaining_hashes(ht) == 0 || get_remaining_guesses(solved) == 0){
fclose(file);
return 0;
}
while (fgets(line, sizeof(line), file)){
......
......@@ -75,7 +75,6 @@ int popular_character_guess_six(HashTable *ht, Passwords *solved){
int index = 0;
// Ensures all passwords havent been guessed
if (remaining_hashes(ht) == 0 || get_remaining_guesses(solved) == 0){
fclose(file);
return 0;
}
while (fgets(line, sizeof(line), file)){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment