Land #6520, Better service reporting for snmp_login

bug/bundler_fix 4.11.9
William Webb 2016-02-04 12:22:12 -06:00
commit 270708d121
1 changed files with 12 additions and 2 deletions

View File

@ -16,8 +16,10 @@ class Metasploit3 < Msf::Auxiliary
def initialize
super(
'Name' => 'SNMP Community Scanner',
'Description' => 'Scan for SNMP devices using common community names',
'Name' => 'SNMP Community Login Scanner',
'Description' => %q{
This module logs in to SNMP devices using common community names.
},
'Author' => 'hdm',
'References' =>
[
@ -71,6 +73,14 @@ class Metasploit3 < Msf::Auxiliary
create_credential_login(credential_data)
print_good "#{ip}:#{rport} - LOGIN SUCCESSFUL: #{result.credential} (Access level: #{result.access_level}); Proof (sysDescr.0): #{result.proof}"
report_service(
:host => ip,
:port => rport,
:proto => 'udp',
:name => 'snmp',
:info => result.proof,
:state => 'open'
)
else
invalidate_login(credential_data)
print_error "#{ip}:#{rport} - LOGIN FAILED: #{result.credential} (#{result.status})"