SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Handle unicode as data from whois.
Stevea6e67d808694
diff --git a/modules/sfp_whois.py b/modules/sfp_whois.pyindex f25540d3..2f4cc100 100644--- a/modules/sfp_whois.py+++ b/modules/sfp_whois.py@@ -61,7 +61,10 @@ class sfp_whois(SpiderFootPlugin):try:x = pythonwhois.net.get_whois_raw(eventData)- data = unicode('\n'.join(x), 'utf-8', errors='replace')+ try:+ data = unicode('\n'.join(x), 'utf-8', errors='replace')+ except BaseException as e:+ data = '\n'.join(x)except BaseException as e:self.sf.error("Unable to perform WHOIS on " + eventData + ": " + str(e), False)return None