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])
|
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
|
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
|
if datastore['STORE_NOTES'] == true
|
||||||
notedata = { code: res.code, port: rport, server: server_header, title: rx_title, redirect: location_header }
|
notedata = { code: res.code, port: rport, server: server_header, title: rx_title, redirect: location_header, uri: datastore['TARGETURI'] }
|
||||||
report_note(host: target_host, type: "http.title", data: notedata)
|
report_note(host: target_host, port: rport, type: "http.title", data: notedata, update: :unique_data)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
print_error("[#{target_host}:#{rport}] No webpage title") if datastore['SHOW_ERRORS'] == true
|
print_error("[#{target_host}:#{rport}] No webpage title") if datastore['SHOW_ERRORS'] == true
|
||||||
|
|
Loading…
Reference in New Issue