From 8f3570b390d6f91d940881c8baa11e2b2586081a Mon Sep 17 00:00:00 2001 From: xorrior Date: Thu, 2 Nov 2017 22:19:07 -0400 Subject: [PATCH] Added missing import --- lib/listeners/http.py | 1 + lib/listeners/http_com.py | 2 ++ lib/listeners/http_mapi.py | 2 ++ 3 files changed, 5 insertions(+) diff --git a/lib/listeners/http.py b/lib/listeners/http.py index 27e846c..4e89df6 100644 --- a/lib/listeners/http.py +++ b/lib/listeners/http.py @@ -5,6 +5,7 @@ import os import ssl import time import copy +import sys from pydispatch import dispatcher from flask import Flask, request, make_response # Empire imports diff --git a/lib/listeners/http_com.py b/lib/listeners/http_com.py index 4117bf3..fdaa409 100644 --- a/lib/listeners/http_com.py +++ b/lib/listeners/http_com.py @@ -5,6 +5,7 @@ import os import ssl import time import copy +import sys from pydispatch import dispatcher from flask import Flask, request, make_response @@ -636,6 +637,7 @@ class Listener: certPath = os.path.abspath(certPath) # support any version of tls + pyversion = sys.version_info if pyversion[0] == 2 and pyversion[1] == 7 and pyversion[2] >= 13: proto = ssl.PROTOCOL_TLS elif pyversion[0] >= 3: diff --git a/lib/listeners/http_mapi.py b/lib/listeners/http_mapi.py index 41c8e73..222994a 100644 --- a/lib/listeners/http_mapi.py +++ b/lib/listeners/http_mapi.py @@ -5,6 +5,7 @@ import os import ssl import time import copy +import sys from pydispatch import dispatcher from flask import Flask, request, make_response @@ -618,6 +619,7 @@ class Listener: certPath = os.path.abspath(certPath) # support any version of tls + pyversion = sys.version_info if pyversion[0] == 2 and pyversion[1] == 7 and pyversion[2] >= 13: proto = ssl.PROTOCOL_TLS elif pyversion[0] >= 3: