From 3b9ff3861008791550288e0e9d776ebe4ab3823e Mon Sep 17 00:00:00 2001 From: Camilo Date: Sat, 18 Jun 2022 22:42:17 -0400 Subject: [PATCH] fixed: issue with encoding when opening wordlist --- Zydra.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Zydra.py b/Zydra.py index 830b48e..124ad42 100644 --- a/Zydra.py +++ b/Zydra.py @@ -90,7 +90,7 @@ def detect_file_type(self, file): def count_word(self, dict_file): count = 0 - with open(dict_file, "r") as wordlist: + with open(dict_file, "r", encoding="ISO-8859-1") as wordlist: for line in wordlist: count += 1 return count @@ -584,7 +584,7 @@ def banner(self): # sudo wget http://www.figlet.org/fonts/epic.flf -O /usr/share/figlet/epic.flf bannerfont = "epic" if os.path.exists('/usr/share/figlet/epic.flf') else "banner" banner = pyfiglet.figlet_format("ZYDRA", font=bannerfont).replace("\n", "\n\t\t", 7) - + cprint("\r\n\t" + "@" * 61, "blue", end="") cprint("\n\t\t" + banner + "\t\tAuthor : Hamed Hosseini", "blue", attrs=['bold']) cprint("\t" + "@" * 61 + "\n", "blue")