Skip to content

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

Bug fix.

smicallefa194fd6444a7
diff --git a/modules/sfp_portscan_tcp.py b/modules/sfp_portscan_tcp.py
index cc027f5b..db17b1d7 100644
--- a/modules/sfp_portscan_tcp.py
+++ b/modules/sfp_portscan_tcp.py
@@ -144,7 +144,8 @@ class sfp_portscan_tcp(SpiderFootPlugin):
evt = SpiderFootEvent("TCP_PORT_OPEN", cp, self.__name__, srcEvent)
self.notifyListeners(evt)
if resArray[cp] != "" and resArray[cp] != True:
- bevt = SpiderFootEvent("TCP_PORT_OPEN_BANNER", resArray[cp],
+ banner = str(resArray[cp], 'utf-8', errors='replace')
+ bevt = SpiderFootEvent("TCP_PORT_OPEN_BANNER", banner,
self.__name__, evt)
self.notifyListeners(bevt)