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
c4e2bc9f
Commit
c4e2bc9f
authored
Jul 02, 2016
by
fwkz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding tests to command suggestions.
parent
a68cf7dd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
test_completer.py
routersploit/test/test_completer.py
+17
-3
No files found.
routersploit/test/test_completer.py
View file @
c4e2bc9f
...
@@ -141,9 +141,6 @@ class RoutersploitCompleterTest(RoutersploitTestCase):
...
@@ -141,9 +141,6 @@ class RoutersploitCompleterTest(RoutersploitTestCase):
self
.
module_prompt
(
'FTP Bruteforce'
),
self
.
module_prompt
(
'FTP Bruteforce'
),
)
)
def
test_complete_setg
(
self
):
# TODO: cover setg/unsetg
pass
def
test_complete_set
(
self
):
def
test_complete_set
(
self
):
self
.
set_module
()
self
.
set_module
()
self
.
rsf
.
send
(
"set
\t\t
"
)
self
.
rsf
.
send
(
"set
\t\t
"
)
...
@@ -161,6 +158,23 @@ class RoutersploitCompleterTest(RoutersploitTestCase):
...
@@ -161,6 +158,23 @@ class RoutersploitCompleterTest(RoutersploitTestCase):
'set usernames '
,
'set usernames '
,
)
)
def
test_complete_setg
(
self
):
self
.
set_module
()
self
.
rsf
.
send
(
"setg
\t\t
"
)
self
.
assertPrompt
(
'passwords stop_on_success threads verbosity
\r\n
port target usernames
\r\n
'
,
self
.
module_prompt
(
'FTP Bruteforce'
),
'setg '
,
)
def
test_complete_setg_2
(
self
):
self
.
set_module
()
self
.
rsf
.
send
(
"setg u
\t\t
"
)
self
.
assertPrompt
(
self
.
module_prompt
(
'FTP Bruteforce'
),
'setg usernames '
,
)
def
test_complete_show_raw
(
self
):
def
test_complete_show_raw
(
self
):
self
.
set_module
()
self
.
set_module
()
self
.
rsf
.
send
(
"sh
\t\t
"
)
self
.
rsf
.
send
(
"sh
\t\t
"
)
...
...
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