Added missing import
parent
7fe8c33ae8
commit
8f3570b390
|
@ -5,6 +5,7 @@ import os
|
||||||
import ssl
|
import ssl
|
||||||
import time
|
import time
|
||||||
import copy
|
import copy
|
||||||
|
import sys
|
||||||
from pydispatch import dispatcher
|
from pydispatch import dispatcher
|
||||||
from flask import Flask, request, make_response
|
from flask import Flask, request, make_response
|
||||||
# Empire imports
|
# Empire imports
|
||||||
|
|
|
@ -5,6 +5,7 @@ import os
|
||||||
import ssl
|
import ssl
|
||||||
import time
|
import time
|
||||||
import copy
|
import copy
|
||||||
|
import sys
|
||||||
from pydispatch import dispatcher
|
from pydispatch import dispatcher
|
||||||
from flask import Flask, request, make_response
|
from flask import Flask, request, make_response
|
||||||
|
|
||||||
|
@ -636,6 +637,7 @@ class Listener:
|
||||||
certPath = os.path.abspath(certPath)
|
certPath = os.path.abspath(certPath)
|
||||||
|
|
||||||
# support any version of tls
|
# support any version of tls
|
||||||
|
pyversion = sys.version_info
|
||||||
if pyversion[0] == 2 and pyversion[1] == 7 and pyversion[2] >= 13:
|
if pyversion[0] == 2 and pyversion[1] == 7 and pyversion[2] >= 13:
|
||||||
proto = ssl.PROTOCOL_TLS
|
proto = ssl.PROTOCOL_TLS
|
||||||
elif pyversion[0] >= 3:
|
elif pyversion[0] >= 3:
|
||||||
|
|
|
@ -5,6 +5,7 @@ import os
|
||||||
import ssl
|
import ssl
|
||||||
import time
|
import time
|
||||||
import copy
|
import copy
|
||||||
|
import sys
|
||||||
from pydispatch import dispatcher
|
from pydispatch import dispatcher
|
||||||
from flask import Flask, request, make_response
|
from flask import Flask, request, make_response
|
||||||
|
|
||||||
|
@ -618,6 +619,7 @@ class Listener:
|
||||||
certPath = os.path.abspath(certPath)
|
certPath = os.path.abspath(certPath)
|
||||||
|
|
||||||
# support any version of tls
|
# support any version of tls
|
||||||
|
pyversion = sys.version_info
|
||||||
if pyversion[0] == 2 and pyversion[1] == 7 and pyversion[2] >= 13:
|
if pyversion[0] == 2 and pyversion[1] == 7 and pyversion[2] >= 13:
|
||||||
proto = ssl.PROTOCOL_TLS
|
proto = ssl.PROTOCOL_TLS
|
||||||
elif pyversion[0] >= 3:
|
elif pyversion[0] >= 3:
|
||||||
|
|
Loading…
Reference in New Issue