Fixed the '<BR>' issue in CrtSearch
This commit is contained in:
parent
3f5fc6da01
commit
61ebf366e0
36
sublist3r.py
36
sublist3r.py
|
|
@ -152,11 +152,11 @@ class enumratorBase(object):
|
||||||
self.silent = silent
|
self.silent = silent
|
||||||
self.verbose = verbose
|
self.verbose = verbose
|
||||||
self.headers = {
|
self.headers = {
|
||||||
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36',
|
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36',
|
||||||
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
|
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
|
||||||
'Accept-Language': 'en-US,en;q=0.8',
|
'Accept-Language': 'en-US,en;q=0.8',
|
||||||
'Accept-Encoding': 'gzip',
|
'Accept-Encoding': 'gzip',
|
||||||
}
|
}
|
||||||
self.print_banner()
|
self.print_banner()
|
||||||
|
|
||||||
def print_(self, text):
|
def print_(self, text):
|
||||||
|
|
@ -792,18 +792,26 @@ class CrtSearch(enumratorBaseThreaded):
|
||||||
try:
|
try:
|
||||||
links = link_regx.findall(resp)
|
links = link_regx.findall(resp)
|
||||||
for link in links:
|
for link in links:
|
||||||
subdomain = link.strip()
|
link = link.strip()
|
||||||
if not subdomain.endswith(self.domain) or '*' in subdomain:
|
subdomains = []
|
||||||
continue
|
if '<BR>' in link:
|
||||||
|
subdomains = link.split('<BR>')
|
||||||
|
else:
|
||||||
|
subdomains.append(link)
|
||||||
|
|
||||||
if '@' in subdomain:
|
for subdomain in subdomains:
|
||||||
subdomain = subdomain[subdomain.find('@')+1:]
|
if not subdomain.endswith(self.domain) or '*' in subdomain:
|
||||||
|
continue
|
||||||
|
|
||||||
if subdomain not in self.subdomains and subdomain != self.domain:
|
if '@' in subdomain:
|
||||||
if self.verbose:
|
subdomain = subdomain[subdomain.find('@')+1:]
|
||||||
self.print_("%s%s: %s%s" % (R, self.engine_name, W, subdomain))
|
|
||||||
self.subdomains.append(subdomain.strip())
|
if subdomain not in self.subdomains and subdomain != self.domain:
|
||||||
|
if self.verbose:
|
||||||
|
self.print_("%s%s: %s%s" % (R, self.engine_name, W, subdomain))
|
||||||
|
self.subdomains.append(subdomain.strip())
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
print(e)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue