Skip to content

Commit

Permalink
Fix issue aboul3la#108 and issue aboul3la#114
Browse files Browse the repository at this point in the history
Fix issue aboul3la#108 and issue aboul3la#114
  • Loading branch information
aboul3la authored Nov 23, 2017
2 parents def0527 + da4b3fa commit febe52b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sublist3r.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ def __init__(self, domain, subdomains=None, q=None, silent=False, verbose=True):
return

def extract_domains(self, resp):
links_list = list()
link_regx = re.compile('<cite.*?>(.*?)<\/cite>')
try:
links_list = link_regx.findall(resp)
Expand All @@ -295,7 +296,7 @@ def extract_domains(self, resp):
return links_list

def check_response_errors(self, resp):
if 'Our systems have detected unusual traffic' in resp:
if isinstance(resp, basestring) and 'Our systems have detected unusual traffic' in resp:
self.print_(R + "[!] Error: Google probably now is blocking our requests" + W)
self.print_(R + "[~] Finished now the Google Enumeration ..." + W)
return False
Expand Down Expand Up @@ -378,6 +379,7 @@ def __init__(self, domain, subdomains=None, q=None, silent=False, verbose=True):
return

def extract_domains(self, resp):
links_list = list()
link_regx = re.compile('<p class="web-result-url">(.*?)</p>')
try:
links_list = link_regx.findall(resp)
Expand Down Expand Up @@ -421,6 +423,7 @@ def __init__(self, domain, subdomains=None, q=None, silent=False, verbose=True):
return

def extract_domains(self, resp):
links_list = list()
link_regx = re.compile('<li class="b_algo"><h2><a href="(.*?)"')
link_regx2 = re.compile('<div class="b_title"><h2><a href="(.*?)"')
try:
Expand Down Expand Up @@ -465,6 +468,7 @@ def __init__(self, domain, subdomains=None, q=None, silent=False, verbose=True):
return

def extract_domains(self, resp):
links = list()
found_newdomain = False
subdomain_list = []
link_regx = re.compile('<a.*?class="c-showurl".*?>(.*?)</a>')
Expand Down Expand Up @@ -565,6 +569,7 @@ def enumerate(self):
url = self.get_next(resp)

def extract_domains(self, resp):
links_list = list()
link_regx = re.compile('<a href="http://toolbar.netcraft.com/site_report\?url=(.*)">')
try:
links_list = link_regx.findall(resp)
Expand Down

0 comments on commit febe52b

Please sign in to comment.