Skip to content

Commit b9ac612

Browse files
author
Brent Cook
committed
Land rapid7#5358, set uniqueness constraint on http title notes
2 parents 23c77ad + a4df346 commit b9ac612

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auxiliary/scanner/http/title.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ def run_host(target_host)
8888
rx_title = Rex::Text.html_decode(rx[:title])
8989
print_status("[#{target_host}:#{rport}] [C:#{res.code}] [R:#{location_header}] [S:#{server_header}] #{rx_title}") if datastore['SHOW_TITLES'] == true
9090
if datastore['STORE_NOTES'] == true
91-
notedata = { code: res.code, port: rport, server: server_header, title: rx_title, redirect: location_header }
92-
report_note(host: target_host, type: "http.title", data: notedata)
91+
notedata = { code: res.code, port: rport, server: server_header, title: rx_title, redirect: location_header, uri: datastore['TARGETURI'] }
92+
report_note(host: target_host, port: rport, type: "http.title", data: notedata, update: :unique_data)
9393
end
9494
else
9595
print_error("[#{target_host}:#{rport}] No webpage title") if datastore['SHOW_ERRORS'] == true

0 commit comments

Comments
 (0)