Fix the report_note not to clash with smb_enumusers format

git-svn-id: file:///home/svn/framework3/trunk@12107 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2011-03-23 18:14:05 +00:00
parent e866eafb06
commit fff99db43d
1 changed files with 10 additions and 11 deletions

View File

@ -45,17 +45,16 @@ class Metasploit3 < Msf::Auxiliary
disconnect_snmp
@users.each do |user|
report_note(
:host => rhost,
:port => datastore['RPORT'],
:proto => 'udp',
:sname => 'snmp',
:update => :unique_data,
:type => 'smb.username',
:data => user
)
end
report_note(
:host => rhost,
:port => datastore['RPORT'],
:proto => 'udp',
:sname => 'snmp',
:update => :unique_data,
:type => 'snmp.users',
:data => @users
)
rescue ::SNMP::UnsupportedVersion
rescue ::SNMP::RequestTimeout