Skip to content

Commit

Permalink
Fixing help typos (threat9#565)
Browse files Browse the repository at this point in the history
* Fixing help typos

* Removing pinning pip version

* Pinning pytest requirement
  • Loading branch information
lucyoa authored Jan 21, 2019
1 parent 82d3e58 commit f8c68ff
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion .travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requests
paramiko
pysnmp==4.4.6
pycryptodome
pytest
pytest==3.6.0
pytest-forked
pytest-xdist
flake8
Expand Down
11 changes: 6 additions & 5 deletions routersploit/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,19 +261,20 @@ def __parse_prompt(self):

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
Expand Down
3 changes: 1 addition & 2 deletions tests/exploits/routers/dlink/test_dns_320l_327l_rce.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from unittest import mock
import ast
import re
from flask import request
from routersploit.modules.exploits.routers.dlink.dns_320l_327l_rce import Exploit
Expand All @@ -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
Expand Down

0 comments on commit f8c68ff

Please sign in to comment.