Skip to content

Commit 79b9ef0

Browse files
committed
Bugfix
1 parent 7c81adb commit 79b9ef0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/auxiliary/scanner/http/title.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ def run_host(target_host)
4545
begin
4646
# Send a normal GET request
4747
res = send_request_cgi(
48-
'uri': '/',
49-
'method': 'GET'
48+
uri: '/',
49+
method: 'GET'
5050
)
5151

5252
# If no response, quit now
@@ -89,7 +89,7 @@ def run_host(target_host)
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
9191
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)
92+
report_note(host: target_host, port: rport, type: "http.title", data: notedata, unique: :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)