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
4d4faaac
Commit
4d4faaac
authored
Aug 08, 2016
by
Marcin Bury
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing false positives Officeconnect RCE
parent
6a60de9d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
officeconnect_rce.py
routersploit/modules/exploits/3com/officeconnect_rce.py
+7
-3
No files found.
routersploit/modules/exploits/3com/officeconnect_rce.py
View file @
4d4faaac
...
...
@@ -7,6 +7,7 @@ from routersploit import (
http_request
,
mute
,
validators
,
random_text
,
)
...
...
@@ -65,11 +66,14 @@ class Exploit(exploits.Exploit):
def
check
(
self
):
url
=
"{}:{}/utility.cgi?testType=1&IP=aaa"
.
format
(
self
.
target
,
self
.
port
)
response
=
http_request
(
method
=
"GET"
,
url
=
url
)
if
response
is
None
:
response
1
=
http_request
(
method
=
"GET"
,
url
=
url
)
if
response
1
is
None
:
return
False
# target is not vulnerable
if
response
.
status_code
==
200
:
if
response1
.
status_code
==
200
:
url
=
"{}:{}/{}.cgi"
.
format
(
self
.
target
,
self
.
port
,
random_text
(
32
))
response2
=
http_request
(
method
=
"GET"
,
url
=
url
)
if
response2
is
None
or
response1
.
text
!=
response2
.
text
:
return
True
# target is 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