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
264c4c64
Commit
264c4c64
authored
Mar 11, 2017
by
Marcin Bury
Committed by
Mariusz Kupidura
Mar 11, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding scanner results (#206)
parent
513b53dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
autopwn.py
routersploit/modules/scanners/autopwn.py
+11
-2
No files found.
routersploit/modules/scanners/autopwn.py
View file @
264c4c64
...
...
@@ -36,23 +36,31 @@ class Exploit(exploits.Exploit):
def
__init__
(
self
):
self
.
vulnerabilities
=
[]
self
.
not_verified
=
[]
self
.
_exploits_directory
=
path
.
join
(
utils
.
EXPLOITS_DIR
,
self
.
vendor
)
def
run
(
self
):
self
.
vulnerabilities
=
[]
self
.
not_verified
=
[]
with
threads
.
ThreadPoolExecutor
(
self
.
threads
)
as
executor
:
for
exploit
in
utils
.
iter_modules
(
self
.
_exploits_directory
):
executor
.
submit
(
self
.
target_function
,
exploit
)
print_info
()
if
self
.
not_verified
:
print_status
(
"Could not verify exploitability:"
)
for
v
in
self
.
not_verified
:
print_info
(
" - {}"
.
format
(
v
))
print_info
()
if
self
.
vulnerabilities
:
print_success
(
"Device is vulnerable
!
"
)
print_success
(
"Device is vulnerable
:
"
)
for
v
in
self
.
vulnerabilities
:
print_info
(
" - {}"
.
format
(
v
))
print_info
()
else
:
print_error
(
"
Device is not vulnerable to any exploits!
\n
"
)
print_error
(
"
Could not confirm any vulnerablity
\n
"
)
def
check
(
self
):
raise
NotImplementedError
(
"Check method is not available"
)
...
...
@@ -71,3 +79,4 @@ class Exploit(exploits.Exploit):
print_error
(
"{} is not vulnerable"
.
format
(
exploit
))
else
:
print_status
(
"{} could not be verified"
.
format
(
exploit
))
self
.
not_verified
.
append
(
exploit
)
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