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
5f95d4b7
Commit
5f95d4b7
authored
Apr 24, 2016
by
fwkz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Missing docstring
parent
ef499f19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
utils.py
routersploit/utils.py
+12
-0
No files found.
routersploit/utils.py
View file @
5f95d4b7
...
...
@@ -105,6 +105,18 @@ def mute(fn):
def
multi
(
fn
):
""" Decorator for exploit.Exploit class
Decorator that allows to feed exploit using text file containing
multiple targets definition. Decorated function will be executed
as many times as there is targets in the feed file.
WARNING:
Important thing to remember is fact that decorator will
suppress values returned by decorated function. Since method that
perform attack is not suppose to return anything this is not a problem.
"""
@wraps
(
fn
)
def
wrapper
(
self
,
*
args
,
**
kwargs
):
if
self
.
target
.
startswith
(
'file://'
):
...
...
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