Skip to content

Commit 7836488

Browse files
committed
fix brute attempt
1 parent 8e2e425 commit 7836488

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

scanners/content_scanner.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,8 @@ def single_bruter(self):
4747
attempt = self.words_queue.get().strip("/")
4848
found_any = False
4949

50-
# check if there is a file extension, if not then it's a directory we're bruting
51-
if "." not in attempt:
52-
attempt_list.append(f"/{attempt}/")
53-
else:
54-
attempt_list.append(f"/{attempt}")
55-
50+
attempt_list.extend([f"/{attempt}/", f"/{attempt}"])
51+
if "." in attempt: # check if there is a file extension
5652
if ScannerDefaultParams.FileExtensions:
5753
for extension in ScannerDefaultParams.FileExtensions:
5854
attempt_post = "." + attempt.split(".")[-1]

0 commit comments

Comments
 (0)