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
c3f817ab
Commit
c3f817ab
authored
Apr 18, 2016
by
fwkz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding boolify() helper function.
parent
dbe56604
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletions
+9
-1
__init__.py
routersploit/__init__.py
+1
-0
ssh_bruteforce.py
routersploit/modules/creds/ssh_bruteforce.py
+3
-1
utils.py
routersploit/utils.py
+5
-0
No files found.
routersploit/__init__.py
View file @
c3f817ab
...
...
@@ -8,6 +8,7 @@ from routersploit.utils import (
LockedIterator
,
random_text
,
http_request
,
boolify
,
)
from
routersploit
import
exploits
...
...
routersploit/modules/creds/ssh_bruteforce.py
View file @
c3f817ab
...
...
@@ -11,6 +11,7 @@ from routersploit import (
LockedIterator
,
print_success
,
print_table
,
boolify
,
)
...
...
@@ -35,6 +36,7 @@ class Exploit(exploits.Exploit):
credentials
=
[]
def
run
(
self
):
print
self
.
verbosity
self
.
credentials
=
[]
ssh
=
paramiko
.
SSHClient
()
...
...
@@ -70,7 +72,7 @@ class Exploit(exploits.Exploit):
print_error
(
"Credentials not found"
)
def
target_function
(
self
,
running
,
data
):
module_verbosity
=
bool
(
self
.
verbosity
)
module_verbosity
=
bool
ify
(
self
.
verbosity
)
name
=
threading
.
current_thread
()
.
name
ssh
=
paramiko
.
SSHClient
()
ssh
.
set_missing_host_key_policy
(
paramiko
.
AutoAddPolicy
())
...
...
routersploit/utils.py
View file @
c3f817ab
from
__future__
import
print_function
import
threading
from
functools
import
wraps
from
distutils.util
import
strtobool
import
sys
import
random
import
string
...
...
@@ -272,3 +273,7 @@ def http_request(method, url, **kwargs):
except
requests
.
RequestException
as
error
:
print_error
(
error
)
return
def
boolify
(
value
):
return
strtobool
(
value
)
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