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
2ee74604
Commit
2ee74604
authored
Aug 26, 2017
by
dark-lbp
Committed by
Marcin Bury
Aug 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make snmp_bruteforce support snmp v1 (#278)
parent
9a2d0aa4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
snmp_bruteforce.py
routersploit/modules/creds/snmp_bruteforce.py
+2
-1
No files found.
routersploit/modules/creds/snmp_bruteforce.py
View file @
2ee74604
...
...
@@ -36,6 +36,7 @@ class Exploit(exploits.Exploit):
target
=
exploits
.
Option
(
''
,
'Target IP address or file with target:port (file://)'
)
port
=
exploits
.
Option
(
161
,
'Target port'
)
version
=
exploits
.
Option
(
1
,
'Snmp version 0:v1, 1:v2c'
)
threads
=
exploits
.
Option
(
8
,
'Number of threads'
)
snmp
=
exploits
.
Option
(
wordlists
.
snmp
,
'Community string or file with community strings (file://)'
)
verbosity
=
exploits
.
Option
(
'yes'
,
'Display authentication attempts'
)
...
...
@@ -78,7 +79,7 @@ class Exploit(exploits.Exploit):
string
=
data
.
next
()
.
strip
()
errorIndication
,
errorStatus
,
errorIndex
,
varBinds
=
cmdGen
.
getCmd
(
cmdgen
.
CommunityData
(
string
),
cmdgen
.
CommunityData
(
string
,
mpModel
=
int
(
self
.
version
)
),
cmdgen
.
UdpTransportTarget
((
self
.
target
,
int
(
self
.
port
))),
'1.3.6.1.2.1.1.1.0'
,
)
...
...
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