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
930c1b3a
Commit
930c1b3a
authored
Feb 01, 2017
by
Joshua Abraham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed errors
parent
bf87235d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
test_completer.py
routersploit/test/test_completer.py
+8
-8
No files found.
routersploit/test/test_completer.py
View file @
930c1b3a
...
...
@@ -89,7 +89,7 @@ class RoutersploitCompleterTest(RoutersploitTestCase):
self
.
set_module
()
self
.
rsf
.
send
(
"
\t\t
"
)
self
.
assertPrompt
(
'
back check exec exit help run search set setg show use
\r\n
'
,
'
\r\n
'
,
self
.
module_prompt
(
'FTP Bruteforce'
)
)
...
...
@@ -121,16 +121,16 @@ class RoutersploitCompleterTest(RoutersploitTestCase):
self
.
set_module
()
self
.
rsf
.
send
(
"s
\t\t
"
)
self
.
assertPrompt
(
'se
t setg show
\r\n
'
,
'se
arch set setg show
\r\n
'
,
self
.
module_prompt
(
'FTP Bruteforce'
)
)
def
test_complete_set_raw_2
(
self
):
self
.
set_module
()
self
.
rsf
.
send
(
"se
\t
"
)
self
.
rsf
.
send
(
"se
\t
\t
"
)
self
.
assertPrompt
(
'search set setg
\r\n
'
,
self
.
module_prompt
(
'FTP Bruteforce'
),
'se
\a
t'
,
)
def
test_complete_set_raw_3
(
self
):
...
...
@@ -182,8 +182,8 @@ class RoutersploitCompleterTest(RoutersploitTestCase):
self
.
set_module
()
self
.
rsf
.
send
(
"
\t\t
"
)
self
.
assertPrompt
(
"
exec exit help run set setg show use
\r\n
"
,
self
.
module_prompt
(
'FTP Bruteforce'
)
,
"
\r\n
"
,
self
.
module_prompt
(
'FTP Bruteforce'
)
)
def
test_complete_unsetg_2
(
self
):
...
...
@@ -194,8 +194,8 @@ class RoutersploitCompleterTest(RoutersploitTestCase):
self
.
rsf
.
send
(
"setg target foo
\r\n
"
)
self
.
rsf
.
send
(
"
\t\t
"
)
self
.
assertPrompt
(
'
use
\r\n
check exit run setg unsetg
\r\n
'
,
self
.
module_prompt
(
'FTP Bruteforce'
)
,
'
\r\n
'
,
self
.
module_prompt
(
'FTP Bruteforce'
)
)
def
test_complete_unsetg_3
(
self
):
...
...
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