Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Made SSL verification disabling tied to Python 2.7.9 or above.

smicallefe9299c508d30
diff --git a/sflib.py b/sflib.py
index 7a3ccafd..814f01ce 100644
--- a/sflib.py
+++ b/sflib.py
@@ -41,7 +41,8 @@ class SpiderFoot:
self.opts = deepcopy(options)
# This is ugly but we don't want any fetches to fail - we expect
# to encounter unverified SSL certs!
- ssl._create_default_https_context = ssl._create_unverified_context
+ if sys.version_info >= (2, 7, 9):
+ ssl._create_default_https_context = ssl._create_unverified_context
# Bit of a hack to support SOCKS because of the loading order of
# modules. sfscan will call this to update the socket reference