Skip to content

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

Do not decode as unicode

bcoles39eba3c8d5ec
diff --git a/sflib.py b/sflib.py
index da1e7f87..d93444ce 100644
--- a/sflib.py
+++ b/sflib.py
@@ -893,7 +893,7 @@ class SpiderFoot:
# Returns an Array
def parseEmails(self, data):
emails = list()
- matches = re.findall(r'([\%a-zA-Z\.0-9_\-\+]+@[a-zA-Z\.0-9\-]+\.[a-zA-Z\.0-9\-]+)', str(data).decode('unicode-escape'))
+ matches = re.findall(r'([\%a-zA-Z\.0-9_\-\+]+@[a-zA-Z\.0-9\-]+\.[a-zA-Z\.0-9\-]+)', data)
for match in matches:
self.debug("Found possible email: " + match)