We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e2e425 commit 7836488Copy full SHA for 7836488
scanners/content_scanner.py
@@ -47,12 +47,8 @@ def single_bruter(self):
47
attempt = self.words_queue.get().strip("/")
48
found_any = False
49
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
-
+ attempt_list.extend([f"/{attempt}/", f"/{attempt}"])
+ if "." in attempt: # check if there is a file extension
56
if ScannerDefaultParams.FileExtensions:
57
for extension in ScannerDefaultParams.FileExtensions:
58
attempt_post = "." + attempt.split(".")[-1]
0 commit comments