Skip to content

Commit

Permalink
Fixes Issue OWASP#202
Browse files Browse the repository at this point in the history
  • Loading branch information
shaddygarg committed Jan 28, 2020
1 parent 7482fb9 commit 2373d17
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/scan/subdomain/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,10 @@ def __comodo_crt(target, timeout_sec, log_in_file, time_sleep, language, verbose
break
if results.status_code is 200:
try:
for l in re.compile('<TD>(.*?)</TD>').findall(results.content):
if '*' not in l and l.endswith('.' + target) and l not in subs:
subs.append(l)
for list_of_domains in re.compile('<TD>(.*?)</TD>').findall(results.text):
for domain in list_of_domains.split('<BR>'):
if '*' not in domain and domain.endswith('.' + target) and domain not in subs:
subs.append(domain)
except Exception:
pass
else:
Expand Down

0 comments on commit 2373d17

Please sign in to comment.