Skip to content

Commit

Permalink
Now slowloris works with untrusted/invalid certificate.
Browse files Browse the repository at this point in the history
  • Loading branch information
karolcatimmunity-systems committed Apr 30, 2021
1 parent 5e2bb19 commit f27c838
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions slowloris.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ def init_socket(ip):

if args.https:
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
s = ctx.wrap_socket(s, server_hostname=args.host)

s.connect((ip, args.port))
Expand Down

0 comments on commit f27c838

Please # to comment.