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
b024226a
Commit
b024226a
authored
Dec 01, 2016
by
fwkz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Creating utils package
parent
24a4151d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
__init__.py
routersploit/utils/__init__.py
+14
-14
No files found.
routersploit/utils.py
→
routersploit/utils
/__init__
.py
View file @
b024226a
from
__future__
import
print_function
from
__future__
import
absolute_import
from
__future__
import
print_function
import
threading
import
os
import
sys
import
re
import
collections
import
random
import
string
import
errno
import
importlib
import
os
import
random
import
re
import
select
import
socket
import
errno
from
functools
import
wrap
s
from
distutils.util
import
strtobool
import
string
import
sy
s
import
threading
from
abc
import
ABCMeta
,
abstractmethod
from
distutils.util
import
strtobool
from
functools
import
wraps
import
requests
from
.
printer
import
printer_queue
,
thread_output_stream
from
.exceptions
import
RoutersploitException
from
.
import
modules
as
rsf_modules
from
.
.
import
modules
as
rsf_modules
from
.
.
exceptions
import
RoutersploitException
from
.
.printer
import
printer_queue
,
thread_output_stream
MODULES_DIR
=
rsf_modules
.
__path__
[
0
]
CREDS_DIR
=
os
.
path
.
join
(
MODULES_DIR
,
'creds'
)
...
...
@@ -543,7 +543,7 @@ def tokenize(token_specification, text):
def
create_exploit
(
path
):
# TODO: cover with tests
from
.templates
import
exploit
from
.
.
templates
import
exploit
parts
=
path
.
split
(
os
.
sep
)
module_type
,
name
=
parts
[
0
],
parts
[
-
1
]
...
...
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