From abdfed9086ab2a3dc3812f6b7fff6786acc668cc Mon Sep 17 00:00:00 2001 From: Noam Rathaus Date: Tue, 14 May 2024 18:05:42 +0300 Subject: [PATCH] Forgot to change all occurrences of new_word --- lib/core/dictionary.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/core/dictionary.py b/lib/core/dictionary.py index f67690a0d..be85ea8c6 100755 --- a/lib/core/dictionary.py +++ b/lib/core/dictionary.py @@ -145,7 +145,7 @@ def generate(self, files=[], is_blacklist=False): final_lines = [] for new_line in new_lines: # If %DOMAIN% is found, replace it with self.urls (insert as many as they exist) - original_line = new_word['line'] + original_line = new_line['line'] if DOMAIN_TAG in original_line: for hostname in hostnames: split_hostnames = hostname.split(".") @@ -171,13 +171,13 @@ def generate(self, files=[], is_blacklist=False): final_lines = [] # Classic dirsearch wordlist processing (with %EXT% keyword) - for new_word in new_lines: - if EXTENSION_TAG in new_word.lower(): + for new_line in new_lines: + if EXTENSION_TAG in new_line.lower(): for extension in options["extensions"]: new_line = re_ext_tag.sub(extension, line) final_lines.append(new_line) - # Go over the new_words generated + # Go over the new_lines generated for final_line in final_lines: wordlist.add(final_line)