Skip to content

Commit

Permalink
fixed subdomain enumeration
Browse files Browse the repository at this point in the history
  • Loading branch information
s0md3v authored Jan 30, 2019
1 parent 98f984b commit 7ea2c71
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/findSubdomains.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import sys
from re import findall
from tld import get_tld
from requests import get

def findSubdomains(host):
response = get('https://findsubdomains.com/subdomains-of/' +
get_tld(host, fix_protocol=True)).text
host).text
matches = findall(r'(?s)<div class="domains js-domain-name">(.*?)</div>', response)
for match in matches:
sys.stdout.write(match.replace(' ', '').replace('\n', '') + '\n')

0 comments on commit 7ea2c71

Please sign in to comment.