Skip to content

Commit

Permalink
Remove unneeded pass
Browse files Browse the repository at this point in the history
Change "not 'Next page' in resp" to "'Next page' not in resp"

Change s.close to to s.close()
  • Loading branch information
mikemadden42 committed Oct 18, 2016
1 parent 6b9d0ab commit c9887e6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sublist3r.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ def send_req(self, query, page_no=1):
resp = self.session.get(url, headers=headers, timeout=self.timeout)
except Exception as e:
resp = None
pass
return self.get_response(resp)

def get_response(self,response):
Expand Down Expand Up @@ -560,7 +559,7 @@ def enumerate(self):
while True:
resp = self.get_response(self.req(url,cookies))
self.extract_domains(resp)
if not 'Next page' in resp:
if 'Next page' not in resp:
return self.subdomains
break
url = self.get_next(resp)
Expand Down Expand Up @@ -989,7 +988,7 @@ def port_scan(self,host,ports):
result = s.connect_ex((host, int(port)))
if result == 0:
openports.append(port)
s.close
s.close()
except Exception as e:
pass
self.lock.release()
Expand Down

0 comments on commit c9887e6

Please sign in to comment.