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
8631b17b
Commit
8631b17b
authored
8 years ago
by
fwkz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Summary of threaded autopwn
parent
327cfff9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
+12
-1
autopwn.py
routersploit/modules/scanners/autopwn.py
+12
-1
No files found.
routersploit/modules/scanners/autopwn.py
View file @
8631b17b
...
@@ -4,8 +4,9 @@ from routersploit import (
...
@@ -4,8 +4,9 @@ from routersploit import (
print_error
,
print_error
,
print_success
,
print_success
,
print_status
,
print_status
,
print_info
,
utils
,
utils
,
LockedIterator
LockedIterator
,
)
)
...
@@ -33,8 +34,17 @@ class Exploit(exploits.Exploit):
...
@@ -33,8 +34,17 @@ class Exploit(exploits.Exploit):
def
run
(
self
):
def
run
(
self
):
data
=
LockedIterator
(
utils
.
iter_modules
(
utils
.
EXPLOITS_DIR
))
data
=
LockedIterator
(
utils
.
iter_modules
(
utils
.
EXPLOITS_DIR
))
self
.
vulnerabilities
=
[]
self
.
run_threads
(
self
.
threads
,
self
.
target_function
,
data
)
self
.
run_threads
(
self
.
threads
,
self
.
target_function
,
data
)
if
self
.
vulnerabilities
:
print_info
()
print_success
(
"Device is vulnerable!"
)
for
v
in
self
.
vulnerabilities
:
print_info
(
" - {}"
.
format
(
v
))
else
:
print_error
(
"Device is not vulnerable to any exploits!
\n
"
)
def
check
(
self
):
def
check
(
self
):
raise
NotImplementedError
(
"Check method is not available"
)
raise
NotImplementedError
(
"Check method is not available"
)
...
@@ -56,6 +66,7 @@ class Exploit(exploits.Exploit):
...
@@ -56,6 +66,7 @@ class Exploit(exploits.Exploit):
if
response
is
True
:
if
response
is
True
:
print_success
(
"{} {} is vulnerable"
.
format
(
name
,
exploit
))
print_success
(
"{} {} is vulnerable"
.
format
(
name
,
exploit
))
self
.
vulnerabilities
.
append
(
exploit
)
elif
response
is
False
:
elif
response
is
False
:
print_error
(
"{} {} is not vulnerable"
.
format
(
name
,
exploit
))
print_error
(
"{} {} is not vulnerable"
.
format
(
name
,
exploit
))
else
:
else
:
...
...
This diff is collapsed.
Click to expand it.
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