Skip to content

Commit

Permalink
Forgot to change all occurrences of new_word
Browse files Browse the repository at this point in the history
  • Loading branch information
nrathaus committed May 14, 2024
1 parent 7b63d8d commit abdfed9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/core/dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(".")
Expand All @@ -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)

Expand Down

0 comments on commit abdfed9

Please sign in to comment.