Skip to content

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

Should be a proper fix for the Unicode issues seen in sfp_dnsresolve.py.

Steve8c5ec98b1040
diff --git a/sflib.py b/sflib.py
index 76421f73..e74746c7 100644
--- a/sflib.py
+++ b/sflib.py
@@ -372,7 +372,8 @@ class SpiderFoot:
s = string
if type(string) in [list, dict]:
s = str(string)
- s = s.encode('utf-8', errors='replace')
+ if type(s) == str:
+ s = unicode(s, 'utf-8', errors='replace')
return hashlib.sha256(s).hexdigest()
#