Skip to content

Commit 3ac1f7d

Browse files
committed
Land rapid7#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
2 parents 90ae9a3 + e30ee9f commit 3ac1f7d

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

modules/auxiliary/scanner/sap/sap_service_discovery.rb

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -227,15 +227,13 @@ def run_host(ip)
227227
end
228228
print_good("#{ip}:#{port}\t - #{service} OPEN")
229229

230-
begin
231-
report_note(
232-
:host => "#{ip}",
233-
:proto => 'TCP',
234-
:port => "#{port}",
235-
:type => 'SAP',
236-
:data => "#{service}"
237-
)
238-
end
230+
report_note(
231+
:host => "#{ip}",
232+
:port => "#{port}",
233+
:type => 'SAP',
234+
:data => "#{service}",
235+
:update => :unique_data
236+
)
239237
r << [ip,port,"open", service]
240238
rescue ::Rex::ConnectionRefused
241239
vprint_status("#{ip}:#{port}\t - TCP closed")

0 commit comments

Comments
 (0)