Better fix based on feedback

Tell daddy how you want it.
bug/bundler_fix
sinn3r 2013-08-20 12:10:05 -05:00 committed by jvazquez-r7
parent 8eb9266bff
commit 202b31d869
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ class Metasploit3 < Msf::Auxiliary
register_options( register_options(
[ [
OptString.new('PATH', [ true, "The test path to the page to analize", '/']), 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\>(.*)\<\/title\>']) OptRegexp.new('PATTERN', [ true, "The regex to use (default regex is a sample to grab page title)", %r{<title>(.*)</title>}i])
], self.class) ], self.class)
@ -57,7 +57,7 @@ class Metasploit3 < Msf::Auxiliary
return return
end 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| result.each do |u|
print_status("[#{target_host}] #{tpath} [#{u}]") print_status("[#{target_host}] #{tpath} [#{u}]")