Skip to content

Commit

Permalink
variable cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidsec committed Aug 24, 2024
1 parent 696ab91 commit 0e33cd9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bbot/modules/deadly/ffuf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ class ffuf(BaseModule):

deps_common = ["ffuf"]

banned_characters = [" "]

banned_characters = set([" "])
blacklist = ["images", "css", "image"]

in_scope_only = True

async def setup(self):

self.canary = "".join(random.choice(string.ascii_lowercase) for i in range(10))
wordlist_url = self.config.get("wordlist", "")
self.debug(f"Using wordlist [{wordlist_url}]")
Expand Down Expand Up @@ -318,7 +318,6 @@ def generate_templist(self, prefix=None):
prefix = prefix.strip().lower()

max_lines = self.config.get("lines")
banned_set = set(self.banned_characters)

for idx, val in enumerate(self.wordlist_lines):
if idx > max_lines:
Expand All @@ -332,7 +331,7 @@ def generate_templist(self, prefix=None):
# Check if it starts with the given prefix (if any)
if not prefix or stripped_val.startswith(prefix):
# Check if it contains any banned characters
if not any(char in banned_set for char in stripped_val):
if not any(char in self.banned_characters for char in stripped_val):
line_count += 1
virtual_file.append(stripped_val)

Expand Down

0 comments on commit 0e33cd9

Please sign in to comment.