diff --git a/lib/msf/core/option_container.rb b/lib/msf/core/option_container.rb index 09cf7b61ff..932c57bf29 100644 --- a/lib/msf/core/option_container.rb +++ b/lib/msf/core/option_container.rb @@ -528,7 +528,7 @@ class OptRegexp < OptBase end def default - @default.to_s + @default end def display_value(value) diff --git a/modules/auxiliary/scanner/http/scraper.rb b/modules/auxiliary/scanner/http/scraper.rb index 539b6ec736..e57ac40ac2 100644 --- a/modules/auxiliary/scanner/http/scraper.rb +++ b/modules/auxiliary/scanner/http/scraper.rb @@ -27,7 +27,7 @@ class Metasploit3 < Msf::Auxiliary register_options( [ OptString.new('PATH', [ true, "The test path to the page to analize", '/']), - OptRegexp.new('PATTERN', [ true, "The regex to use (default regex is a sample to grab page title)", %r{(.*)}i]) + OptRegexp.new('PATTERN', [ true, "The regex to use (default regex is a sample to grab page title)", '(.*)']) ], self.class)