Skip to content

Commit 518e286

Browse files
committed
Removed CGI dependency (@hmoore-r7, @wchen-r7)
1 parent 78e3105 commit 518e286

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/auxiliary/scanner/http/title.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
##
55

66
require 'msf/core'
7-
require 'cgi'
87

98
class Metasploit3 < Msf::Auxiliary
109
# Exploit mixins should be called first
@@ -86,7 +85,7 @@ def run_host(target_host)
8685
# Last bit of logic to capture the title
8786
rx[:title].strip!
8887
if rx[:title] != ''
89-
rx_title = CGI.unescapeHTML(rx[:title])
88+
rx_title = Rex::Text.html_decode(rx[:title])
9089
print_status("[#{target_host}:#{rport}] [C:#{res.code}] [R:#{location_header}] [S:#{server_header}] #{rx_title}") if datastore['SHOW_TITLES'] == true
9190
if datastore['STORE_NOTES'] == true
9291
notedata = { code: res.code, port: rport, server: server_header, title: rx_title, redirect: location_header }

0 commit comments

Comments
 (0)