Land #4242, @Meatballs1 fix for sap_service_discovery report_note

* I cannot reproduce @Meatballs1 issue
* But I noticed report_note should :update with :unique_data
* Fixed the :update
bug/bundler_fix
jvazquez-r7 2014-11-21 10:16:08 -06:00
commit 3ac1f7d4fb
No known key found for this signature in database
GPG Key ID: 38D99152B9352D83
1 changed files with 7 additions and 9 deletions

View File

@ -227,15 +227,13 @@ class Metasploit4 < Msf::Auxiliary
end
print_good("#{ip}:#{port}\t - #{service} OPEN")
begin
report_note(
:host => "#{ip}",
:proto => 'TCP',
:port => "#{port}",
:type => 'SAP',
:data => "#{service}"
)
end
report_note(
:host => "#{ip}",
:port => "#{port}",
:type => 'SAP',
:data => "#{service}",
:update => :unique_data
)
r << [ip,port,"open", service]
rescue ::Rex::ConnectionRefused
vprint_status("#{ip}:#{port}\t - TCP closed")