mirror of https://github.com/Askill/slowloris.git
Make ssl import optional
This commit is contained in:
parent
c24b9f8801
commit
5cb7d9a3a7
|
|
@ -3,7 +3,6 @@ import argparse
|
|||
import logging
|
||||
import random
|
||||
import socket
|
||||
import ssl
|
||||
import sys
|
||||
import time
|
||||
|
||||
|
|
@ -50,6 +49,10 @@ if args.verbose:
|
|||
else:
|
||||
logging.basicConfig(format="[%(asctime)s] %(message)s", datefmt="%d-%m-%Y %H:%M:%S", level=logging.INFO)
|
||||
|
||||
if args.https:
|
||||
logging.info("Importing ssl module")
|
||||
import ssl
|
||||
|
||||
list_of_sockets = []
|
||||
user_agents = [
|
||||
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36",
|
||||
|
|
|
|||
Loading…
Reference in New Issue