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
8ab2a3f3
Commit
8ab2a3f3
authored
Mar 25, 2017
by
fwkz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add macOS build.
parent
94c2c225
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
63 additions
and
9 deletions
+63
-9
.travis.yml
.travis.yml
+12
-6
install.sh
.travis/install.sh
+24
-0
run.sh
.travis/run.sh
+14
-0
requirements-dev.txt
requirements-dev.txt
+10
-0
interpreter.py
routersploit/interpreter.py
+2
-2
test_interpreter.py
routersploit/test/test_interpreter.py
+1
-1
No files found.
.travis.yml
View file @
8ab2a3f3
language
:
python
python
:
-
"
2.7"
matrix
:
include
:
-
os
:
linux
python
:
2.7
-
os
:
osx
language
:
generic
env
:
PYTHON_VERSION=2.7.13
install
:
-
"
pip
install
-r
requirements.txt"
-
"
pip
install
pexpect
flake8"
-
"
./.travis/install.sh"
script
:
-
"
python
-m
unittest
discover"
-
"
./run_linter.sh"
-
"
./.travis/run.sh"
\ No newline at end of file
.travis/install.sh
0 → 100755
View file @
8ab2a3f3
#!/bin/bash
set
-e
set
-x
if
[[
"
$(
uname
-s
)
"
==
'Darwin'
]]
;
then
sw_vers
git clone
--depth
1 https://github.com/yyuu/pyenv.git ~/.pyenv
PYENV_ROOT
=
"
$HOME
/.pyenv"
PATH
=
"
$PYENV_ROOT
/bin:
$PATH
"
eval
"
$(
pyenv init -
)
"
pyenv install
$PYTHON_VERSION
pyenv global
$PYTHON_VERSION
pyenv rehash
pip install
--user
--upgrade
pip
pip install
--user
virtualenv
python
-m
virtualenv ~/.venv
source
~/.venv/bin/activate
fi
pip install
-r
requirements-dev.txt
.travis/run.sh
0 → 100755
View file @
8ab2a3f3
#!/bin/bash
set
-e
set
-x
if
[[
"
$(
uname
-s
)
"
==
"Darwin"
]]
;
then
PYENV_ROOT
=
"
$HOME
/.pyenv"
PATH
=
"
$PYENV_ROOT
/bin:
$PATH
"
eval
"
$(
pyenv init -
)
"
source
~/.venv/bin/activate
fi
source
run_tests.sh
source
run_linter.sh
requirements-dev.txt
0 → 100644
View file @
8ab2a3f3
future>=0.16.0
requests>=2.9.1
paramiko>=1.16.0
beautifulsoup4>=4.4.1
pysnmp>=4.3.2
gnureadline
pexpect
mock
flake8
\ No newline at end of file
routersploit/interpreter.py
View file @
8ab2a3f3
...
...
@@ -378,8 +378,8 @@ class RoutersploitInterpreter(BaseInterpreter):
@utils.module_required
def
_show_options
(
self
,
*
args
,
**
kwargs
):
target_opts
=
{
'port'
,
'target'
}
module_opts
=
set
(
self
.
current_module
.
options
)
-
target_opts
target_opts
=
[
'target'
,
'port'
]
module_opts
=
[
opt
for
opt
in
self
.
current_module
.
options
if
opt
not
in
target_opts
]
headers
=
(
"Name"
,
"Current settings"
,
"Description"
)
utils
.
print_info
(
'
\n
Target options:'
)
...
...
routersploit/test/test_interpreter.py
View file @
8ab2a3f3
...
...
@@ -436,8 +436,8 @@ class RoutersploitInterpreterTest(RoutersploitTestCase):
mock
.
call
(),
mock
.
call
(
' Name Current settings Description '
),
mock
.
call
(
' ---- ---------------- ----------- '
),
mock
.
call
(
' bar 2 bar_desc '
),
mock
.
call
(
' foo 1 foo_desc '
),
mock
.
call
(
' bar 2 bar_desc '
),
mock
.
call
(
' baz 3 baz_desc '
),
mock
.
call
(),
mock
.
call
(),
...
...
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