Skip to content

Commit 23c20f7

Browse files
committed
update count
1 parent 067ee72 commit 23c20f7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scanners/subdomain_scanner.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ def single_bruter(self):
3333

3434
while not self.words_queue.empty() and not ScanManager._SHOULD_ABORT:
3535
subdomain = self.words_queue.get()
36+
url_path = self.generate_url_base_path(subdomain)
3637
if subdomain == self.original_subdomain:
38+
self._update_count(url_path, True)
3739
continue
38-
url_path = self.generate_url_base_path(subdomain)
3940
found = False
4041
try:
4142
res = self._make_request(method="GET", url=url_path)
@@ -58,7 +59,7 @@ def single_bruter(self):
5859

5960
def _record_found(self, url_path: str):
6061
self._save_results(f"{url_path}\n")
61-
self._log_progress(f"found -> {url_path}")
62+
self._log_progress(f"added to queue -> {url_path}")
6263

6364
def _start_scanner(self) -> queue.Queue:
6465
threads = list()

0 commit comments

Comments
 (0)