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
f8c68ff3
Unverified
Commit
f8c68ff3
authored
Jan 21, 2019
by
Marcin Bury
Committed by
GitHub
Jan 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing help typos (#565)
* Fixing help typos * Removing pinning pip version * Pinning pytest requirement
parent
82d3e58d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
9 deletions
+8
-9
install.sh
.travis/install.sh
+0
-1
requirements-dev.txt
requirements-dev.txt
+1
-1
interpreter.py
routersploit/interpreter.py
+6
-5
test_dns_320l_327l_rce.py
tests/exploits/routers/dlink/test_dns_320l_327l_rce.py
+1
-2
No files found.
.travis/install.sh
View file @
f8c68ff3
...
...
@@ -15,7 +15,6 @@ if [[ "$(uname -s)" == 'Darwin' ]]; then
pyenv global
$PYTHON_VERSION
pyenv rehash
pip install
--user
--upgrade
pip
==
9.0.3
pip install
--user
virtualenv
python
-m
virtualenv ~/.venv
source
~/.venv/bin/activate
...
...
requirements-dev.txt
View file @
f8c68ff3
...
...
@@ -3,7 +3,7 @@ requests
paramiko
pysnmp==4.4.6
pycryptodome
pytest
pytest
==3.6.0
pytest-forked
pytest-xdist
flake8
...
...
routersploit/interpreter.py
View file @
f8c68ff3
...
...
@@ -261,19 +261,20 @@ class RoutersploitInterpreter(BaseInterpreter):
def
__handle_if_noninteractive
(
self
,
argv
):
noninteractive
=
False
module
=
''
module
=
""
set_opts
=
[]
try
:
opts
,
args
=
getopt
.
getopt
(
argv
,
"hxm:s:"
,
[
"module="
,
"set="
])
except
getopt
.
GetoptError
:
print
(
'rsf.py -m <module>'
)
print
_info
(
"{} -m <module> -s
\"
<option> <value>
\"
"
.
format
(
sys
.
argv
[
0
])
)
sys
.
exit
(
2
)
for
opt
,
arg
in
opts
:
if
opt
==
'-h'
:
print
(
'msf.py -x -m <module> -s "<option> <value"'
)
if
opt
==
"-h"
:
print
_info
(
"{} -x -m <module> -s
\"
<option> <value>
\"
"
.
format
(
sys
.
argv
[
0
])
)
sys
.
exit
(
0
)
elif
opt
==
'-x'
:
elif
opt
==
"-x"
:
noninteractive
=
True
elif
opt
in
(
"-m"
,
"--module"
):
module
=
arg
...
...
tests/exploits/routers/dlink/test_dns_320l_327l_rce.py
View file @
f8c68ff3
from
unittest
import
mock
import
ast
import
re
from
flask
import
request
from
routersploit.modules.exploits.routers.dlink.dns_320l_327l_rce
import
Exploit
...
...
@@ -10,7 +9,7 @@ def apply_response(*args, **kwargs):
res
=
re
.
findall
(
r"\$\(\((.*-1)\)\)"
,
inj
)
data
=
"TEST"
if
res
:
solution
=
ast
.
literal_eval
(
res
[
0
]
)
solution
=
eval
(
res
[
0
],
{
'__builtins__'
:
None
}
)
data
+=
str
(
solution
)
return
data
,
200
...
...
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