Skip to content

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

Provide URLs within an SFURL tag.

smicallef518a5bfea9da
diff --git a/modules/sfp_malcheck.py b/modules/sfp_malcheck.py
index 9e164667..64967118 100644
--- a/modules/sfp_malcheck.py
+++ b/modules/sfp_malcheck.py
@@ -482,7 +482,7 @@ class sfp_malcheck(SpiderFootPlugin):
# Notify other modules of what you've found
if url != None:
- text = check + " [" + eventData + "]\n" + url
+ text = check + " [" + eventData + "]\n" + "<SFURL>" + url + "</SFURL>"
evt = SpiderFootEvent(evtType, text, self.__name__, event)
self.notifyListeners(evt)
@@ -502,7 +502,7 @@ class sfp_malcheck(SpiderFootPlugin):
if self.opts[cid]:
url = self.lookupItem(cid, 'domain', self.baseDomain)
if url != None:
- text = check + " [" + self.baseDomain + "]\n" + url
+ text = check + " [" + self.baseDomain + "]\n<SFURL>" + url + "</SFURL>"
evt = SpiderFootEvent('MALICIOUS_SUBDOMAIN', text, self.__name__)
self.notifyListeners(evt)
diff --git a/modules/sfp_pastebin.py b/modules/sfp_pastebin.py
index 3a6d8af5..4b65afdc 100644
--- a/modules/sfp_pastebin.py
+++ b/modules/sfp_pastebin.py
@@ -100,13 +100,19 @@ class sfp_pastebin(SpiderFootPlugin):
if res['content'] == None:
sf.debug("Ignoring " + link + " as no data returned")
+ continue
evt = SpiderFootEvent("SEARCH_ENGINE_WEB_CONTENT",
res['content'], self.__name__)
self.notifyListeners(evt)
+ startIndex = res['content'].index(self.baseDomain)-120
+ endIndex = startIndex+len(self.baseDomain)+240
+ data = res['content'][startIndex:endIndex]
+
evt = SpiderFootEvent("PASTEBIN_CONTENT",
- link, self.__name__)
+ "<SFURL>" + link + "</SFURL>\n" + "\"... " + data + " ...\"",
+ self.__name__)
self.notifyListeners(evt)
diff --git a/modules/sfp_virustotal.py b/modules/sfp_virustotal.py
index 58d1c9fd..e26d0a57 100644
--- a/modules/sfp_virustotal.py
+++ b/modules/sfp_virustotal.py
@@ -132,8 +132,8 @@ class sfp_virustotal(SpiderFootPlugin):
evt = "MALICIOUS_COHOST"
infotype = "domain"
- infourl = "https://www.virustotal.com/en/" + infotype + "/" + \
- eventData + "/information/"
+ infourl = "<SFURL>https://www.virustotal.com/en/" + infotype + "/" + \
+ eventData + "/information/</SFURL>"
# Notify other modules of what you've found
e = SpiderFootEvent(evt, "VirusTotal [" + eventData + "]\n" + \
@@ -165,8 +165,8 @@ class sfp_virustotal(SpiderFootPlugin):
return None
if info.has_key('detected_urls'):
- infourl = "https://www.virustotal.com/en/domain/" + self.baseDomain + \
- "/information/"
+ infourl = "<SFURL>https://www.virustotal.com/en/domain/" + self.baseDomain + \
+ "/information/</SFURL>"
# Notify other modules of what you've found
e = SpiderFootEvent("MALICIOUS_SUBDOMAIN", "VirusTotal [" + \
diff --git a/sfwebui.py b/sfwebui.py
index 84b0153c..040f2b9e 100644
--- a/sfwebui.py
+++ b/sfwebui.py
@@ -80,7 +80,8 @@ class SpiderFootWebUi:
parser.writerow(["Updated", "Type", "Module", "Source", "Data"])
for row in data:
lastseen = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(row[0]))
- parser.writerow([lastseen, str(row[4]), str(row[3]), str(row[2]), str(row[1])])
+ datafield = str(row[1]).replace("<SFURL>", "").replace("</SFURL>", "")
+ parser.writerow([lastseen, str(row[4]), str(row[3]), str(row[2]), datafield])
cherrypy.response.headers['Content-Disposition'] = "attachment; filename=SpiderFoot.csv"
cherrypy.response.headers['Content-Type'] = "application/csv"
cherrypy.response.headers['Pragma'] = "no-cache"
@@ -265,6 +266,11 @@ class SpiderFootWebUi:
t = threading.Thread(name="SF_" + scanname, target=self.scanner.startScan)
t.start()
+ # Spin cycles waiting for the scan ID to be set
+ while self.scanner.myId == None:
+ time.sleep(1)
+ continue
+
templ = Template(filename='dyn/scaninfo.tmpl', lookup=self.lookup)
return templ.render(id=self.scanner.myId, name=scanname,
status=self.scanner.status, pageid="SCANLIST")