Skip to content

Commit 68e274b

Browse files
committed
refactor(C99Source): optimize subdomain extraction logic to break early when subdomains are found
1 parent ab1658d commit 68e274b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bugscanx/modules/scrapers/subfinder/sources.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ def fetch(self, domain):
115115
text = link.get_text(strip=True)
116116
if text.endswith(f".{domain}"):
117117
subdomains.add(text)
118+
if subdomains:
119+
break
118120
return subdomains
119121

120122

0 commit comments

Comments
 (0)