parent
8eb9266bff
commit
202b31d869
|
@ -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}]")
|
||||||
|
|
Loading…
Reference in New Issue