SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Fixed visualisation issues.
Steve Micallef71dd68f8798f
diff --git a/sfdb.py b/sfdb.pyindex 39ff152b..3fe7c3b6 100644--- a/sfdb.py+++ b/sfdb.py@@ -394,8 +394,6 @@ class SpiderFootDb:qry = qry + " ORDER BY c.data"- #print "QRY: " + qry-try:self.dbh.execute(qry, qvars)return self.dbh.fetchall()diff --git a/sflib.py b/sflib.pyindex 882ca99c..f0f2e164 100644--- a/sflib.py+++ b/sflib.py@@ -1292,16 +1292,18 @@ class SpiderFootEvent(object):# "ROOT" is a special "hash" reserved for elements with no# actual parent (e.g. the first page spidered.)- if self.sourceEvent == None:+ if eventType == "ROOT":self.sourceEventHash = "ROOT"- else:- self.sourceEventHash = sourceEvent.getHash()+ return+ self.sourceEventHash = sourceEvent.getHash()self.__id = self.eventType + str(self.generated) + self.module + \str(random.randint(0, 99999999))# Unique hash of this eventdef getHash(self):+ if self.eventType == "ROOT":+ return "ROOT"digestStr = self.__id.encode('raw_unicode_escape')return hashlib.sha256(digestStr).hexdigest()diff --git a/sfscan.py b/sfscan.pyindex 0b25cf5a..bbe3d8c2 100644--- a/sfscan.py+++ b/sfscan.py@@ -223,13 +223,15 @@ class SpiderFootScanner(threading.Thread):psMod.registerListener(mod)# Create the "ROOT" event which un-triggered modules will link events to+ rootEvent = SpiderFootEvent("ROOT", "", "", None)+ psMod.notifyListeners(rootEvent)firstEvent = SpiderFootEvent(self.ts.targetType, self.ts.targetValue,- "SpiderFoot UI", None)+ "SpiderFoot UI", rootEvent)psMod.notifyListeners(firstEvent)- # Start the modules sequentially.+ # Check in case the user requested to stop the scan between modules+ # initializingfor module in self.ts.moduleInstances.values():- # Check in case the user requested to stop the scan between modules initializingif module.checkForStop():self.setStatus('ABORTING')aborted = Truediff --git a/sfwebui.py b/sfwebui.pyindex 74139e0f..fc2f9eb1 100644--- a/sfwebui.py+++ b/sfwebui.py@@ -520,8 +520,8 @@ class SpiderFootWebUi:keepGoing = Truedatamap[parentId] = row-- #print pc+ # Delete the ROOT key as it adds no value from a viz perspective+ del pc['ROOT']retdata = dict()retdata['tree'] = sf.dataParentChildToTree(pc)retdata['data'] = datamap