Skip to content

Commit

Permalink
Land #4242, @Meatballs1 fix for sap_service_discovery report_note
Browse files Browse the repository at this point in the history
* I cannot reproduce @Meatballs1 issue
* But I noticed report_note should :update with :unique_data
* Fixed the :update
  • Loading branch information
jvazquez-r7 committed Nov 21, 2014
2 parents 90ae9a3 + e30ee9f commit 3ac1f7d
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions modules/auxiliary/scanner/sap/sap_service_discovery.rb
Original file line number Diff line number Diff line change
Expand Up @@ -227,15 +227,13 @@ def run_host(ip)
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")
Expand Down

0 comments on commit 3ac1f7d

Please sign in to comment.