Fixed the '<BR>' issue in CrtSearch

This commit is contained in:
Ahmed Aboul-Ela 2020-04-06 03:05:06 +04:00
parent 3f5fc6da01
commit 61ebf366e0
1 changed files with 22 additions and 14 deletions

View File

@ -792,7 +792,14 @@ class CrtSearch(enumratorBaseThreaded):
try:
links = link_regx.findall(resp)
for link in links:
subdomain = link.strip()
link = link.strip()
subdomains = []
if '<BR>' in link:
subdomains = link.split('<BR>')
else:
subdomains.append(link)
for subdomain in subdomains:
if not subdomain.endswith(self.domain) or '*' in subdomain:
continue
@ -804,6 +811,7 @@ class CrtSearch(enumratorBaseThreaded):
self.print_("%s%s: %s%s" % (R, self.engine_name, W, subdomain))
self.subdomains.append(subdomain.strip())
except Exception as e:
print(e)
pass