Skip to content

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

Bug fixes handling raw data.

smicallef722ecb7d89a3
diff --git a/dyn/scaninfo.tmpl b/dyn/scaninfo.tmpl
index 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.py
index 9d6d3ca0..d0d8b5d8 100644
--- a/modules/sfp_mail.py
+++ b/modules/sfp_mail.py
@@ -57,6 +57,7 @@ class sfp_mail(SpiderFootPlugin):
eventName = event.eventType
srcModuleName = event.module
eventData = event.data
+ parentEvent = event.sourceEvent
sf.debug("Received event, " + eventName + ", from " + srcModuleName)
@@ -91,7 +92,7 @@ class sfp_mail(SpiderFootPlugin):
continue
sf.info("Found e-mail address: " + match)
- evt = SpiderFootEvent("EMAILADDR", match, self.__name__, event)
+ evt = SpiderFootEvent("EMAILADDR", match, self.__name__, parentEvent)
self.notifyListeners(evt)
return None
diff --git a/modules/sfp_subdomain.py b/modules/sfp_subdomain.py
index 21940ceb..2a5474ac 100644
--- a/modules/sfp_subdomain.py
+++ b/modules/sfp_subdomain.py
@@ -45,7 +45,10 @@ class sfp_subdomain(SpiderFootPlugin):
eventName = event.eventType
srcModuleName = event.module
eventData = event.data
- parentEvent = event.sourceEvent
+ if eventName == "RAW_DATA":
+ parentEvent = event.sourceEvent
+ else:
+ parentEvent = event
sf.debug("Received event, " + eventName + ", from " + srcModuleName)
@@ -64,7 +67,7 @@ class sfp_subdomain(SpiderFootPlugin):
continue
else:
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] = True
diff --git a/sfdb.py b/sfdb.py
index 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: " + qry
try:
self.dbh.execute(qry, qvars)
diff --git a/sfscan.py b/sfscan.py
index 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.