Land #5358, set uniqueness constraint on http title notes
commit
b9ac612db1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue