diff --git a/modules/auxiliary/scanner/http/scraper.rb b/modules/auxiliary/scanner/http/scraper.rb index 4e96996514..d058ef9537 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", '/']), - OptRegexp.new('REGEX', [ true, "The regex to use (default regex is a sample to grab page title)", '\(.*)\<\/title\>']) + OptRegexp.new('PATTERN', [ true, "The regex to use (default regex is a sample to grab page title)", %r{(.*)}i]) ], self.class) @@ -57,7 +57,7 @@ class Metasploit3 < Msf::Auxiliary return end - result = res.body.scan(datastore['REGEX']).flatten.map{ |s| s.strip }.uniq + result = res.body.scan(datastore['PATTERN']).flatten.map{ |s| s.strip }.uniq result.each do |u| print_status("[#{target_host}] #{tpath} [#{u}]")