diff --git a/modules/auxiliary/scanner/http/title.rb b/modules/auxiliary/scanner/http/title.rb index 0126ff1d0f..eda97d9e11 100644 --- a/modules/auxiliary/scanner/http/title.rb +++ b/modules/auxiliary/scanner/http/title.rb @@ -88,8 +88,8 @@ class Metasploit3 < Msf::Auxiliary rx_title = Rex::Text.html_decode(rx[:title]) print_status("[#{target_host}:#{rport}] [C:#{res.code}] [R:#{location_header}] [S:#{server_header}] #{rx_title}") if datastore['SHOW_TITLES'] == true if datastore['STORE_NOTES'] == true - notedata = { code: res.code, port: rport, server: server_header, title: rx_title, redirect: location_header } - report_note(host: target_host, type: "http.title", data: notedata) + notedata = { code: res.code, port: rport, server: server_header, title: rx_title, redirect: location_header, uri: datastore['TARGETURI'] } + report_note(host: target_host, port: rport, type: "http.title", data: notedata, update: :unique_data) end else print_error("[#{target_host}:#{rport}] No webpage title") if datastore['SHOW_ERRORS'] == true