SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Bug fixes handling raw data.
smicallef722ecb7d89a3
diff --git a/dyn/scaninfo.tmpl b/dyn/scaninfo.tmplindex eb4a6003..208d3b51 100644--- a/dyn/scaninfo.tmpl+++ b/dyn/scaninfo.tmpl@@ -116,7 +116,7 @@crumbs += eventTypeLabel + "</a></li></ul>";var table = "<table id='scansummary-content' class='table table-bordered table-striped small'>";- table += "<thead><tr> <th>Data Element</th><th>Source Data Element</th><th style='text-align: center'>Source Module</th><th style='text-align: center'>Identified</th></tr></thead><tbody>";+ table += "<thead><tr> <th>Data Element</th><th>Source Data Element</th><th>Source Module</th><th>Identified</th></tr></thead><tbody>";for (var i = 0; i < data.length; i++) {table += "<tr><td><pre style='border: 0px; background-color: inherit'>" + data[i][1];table += "</pre></td><td><pre style='border: 0px; background-color: inherit'>" + data[i][2];diff --git a/modules/sfp_mail.py b/modules/sfp_mail.pyindex 9d6d3ca0..d0d8b5d8 100644--- a/modules/sfp_mail.py+++ b/modules/sfp_mail.py@@ -57,6 +57,7 @@ class sfp_mail(SpiderFootPlugin):eventName = event.eventTypesrcModuleName = event.moduleeventData = event.data+ parentEvent = event.sourceEventsf.debug("Received event, " + eventName + ", from " + srcModuleName)@@ -91,7 +92,7 @@ class sfp_mail(SpiderFootPlugin):continuesf.info("Found e-mail address: " + match)- evt = SpiderFootEvent("EMAILADDR", match, self.__name__, event)+ evt = SpiderFootEvent("EMAILADDR", match, self.__name__, parentEvent)self.notifyListeners(evt)return Nonediff --git a/modules/sfp_subdomain.py b/modules/sfp_subdomain.pyindex 21940ceb..2a5474ac 100644--- a/modules/sfp_subdomain.py+++ b/modules/sfp_subdomain.py@@ -45,7 +45,10 @@ class sfp_subdomain(SpiderFootPlugin):eventName = event.eventTypesrcModuleName = event.moduleeventData = event.data- parentEvent = event.sourceEvent+ if eventName == "RAW_DATA":+ parentEvent = event.sourceEvent+ else:+ parentEvent = eventsf.debug("Received event, " + eventName + ", from " + srcModuleName)@@ -64,7 +67,7 @@ class sfp_subdomain(SpiderFootPlugin):continueelse:sf.info("New sub-domain/host found: " + match)- evt = SpiderFootEvent("SUBDOMAIN", match, self.__name__, event)+ evt = SpiderFootEvent("SUBDOMAIN", match, self.__name__, parentEvent)self.notifyListeners(evt)self.results[match] = Truediff --git a/sfdb.py b/sfdb.pyindex fde35071..a992d5ae 100644--- a/sfdb.py+++ b/sfdb.py@@ -167,7 +167,7 @@ class SpiderFootDb:qry = qry + " ORDER BY c.data"- print "QRY: " + qry+ #print "QRY: " + qrytry:self.dbh.execute(qry, qvars)diff --git a/sfscan.py b/sfscan.pyindex f4188616..0b57fc1e 100644--- a/sfscan.py+++ b/sfscan.py@@ -118,7 +118,7 @@ class SpiderFootScanner:self.status = "RUNNING"# Create the "ROOT" event which un-triggered modules will link events to- rootEvent = SpiderFootEvent("INITIAL_TARGET", self.target, "User Input")+ rootEvent = SpiderFootEvent("INITIAL_TARGET", self.target, "SpiderFoot UI")dbh.scanEventStore(self.config['__guid__'], rootEvent)# Start the modules sequentially.