Skip to content

Incredibly fast crawler designed for OSINT.

fixed subdomain enumeration

Somdev Sangwan7b24d5827d22
diff --git a/plugins/find_subdomains.py b/plugins/find_subdomains.py
index fd6b495..98c9109 100644
--- a/plugins/find_subdomains.py
+++ b/plugins/find_subdomains.py
@@ -8,10 +8,7 @@ def find_subdomains(domain):
"""Find subdomains according to the TLD."""
result = set()
response = get('https://findsubdomains.com/subdomains-of/' + domain).text
- parts = response.split('data-row')
- for part in parts:
- matches = findall(
- r'rel="nofollow" href="([^/]*)" target="_blank"', part)
- for match in matches:
- result.add(match)
+ matches = findall(r'(?s)<div class="domains js-domain-name">(.*?)</div>', response)
+ for match in matches:
+ result.add(match.replace(' ', '').replace('\n', ''))
return list(result)