diff --git a/modules/auxiliary/scanner/http/scraper.rb b/modules/auxiliary/scanner/http/scraper.rb index c601ff23e5..d82ee7600e 100644 --- a/modules/auxiliary/scanner/http/scraper.rb +++ b/modules/auxiliary/scanner/http/scraper.rb @@ -29,7 +29,7 @@ class Metasploit3 < Msf::Auxiliary register_options( [ OptString.new('PATH', [ true, "The test path to the page to analize", '/']), - OptString.new('REGEX', [ true, "The regex to use (default regex is a sample to grab page title)", '\(.*)\<\/title\>']), + OptRegexp.new('REGEX', [ true, "The regex to use (default regex is a sample to grab page title)", '\(.*)\<\/title\>']) ], self.class) @@ -57,8 +57,6 @@ class Metasploit3 < Msf::Auxiliary return end - aregex = Regexp.new(datastore['REGEX'].to_s,Regexp::IGNORECASE) - result = res.body.scan(aregex).flatten.map{ |s| s.strip }.uniq result.each do |u|