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
6806509c
Commit
6806509c
authored
Jan 29, 2017
by
Joshua Abraham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added search function, need to add tab-complete
parent
233ef4ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
interpreter.py
routersploit/interpreter.py
+7
-0
.__init__.py.swp
routersploit/utils/.__init__.py.swp
+0
-0
No files found.
routersploit/interpreter.py
View file @
6806509c
...
...
@@ -159,6 +159,7 @@ class RoutersploitInterpreter(BaseInterpreter):
help Print this help menu
use <module> Select a module for usage
exec <shell command> <args> Execute a command in a shell
search <search term> Search for appropriate module
exit Exit RouterSploit"""
module_help
=
"""Module commands:
...
...
@@ -456,5 +457,11 @@ class RoutersploitInterpreter(BaseInterpreter):
def
command_exec
(
self
,
*
args
,
**
kwargs
):
os
.
system
(
args
[
0
])
def
command_search
(
self
,
*
args
,
**
kwargs
):
for
arg
in
args
:
matches
=
[
s
for
s
in
self
.
modules
if
arg
in
str
(
s
)]
for
match
in
matches
:
print
(
match
.
replace
(
'.'
,
'/'
))
def
command_exit
(
self
,
*
args
,
**
kwargs
):
raise
EOFError
routersploit/utils/.__init__.py.swp
0 → 100644
View file @
6806509c
File added
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