Skip to content

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

Bug fixes.

Steve Micallef7d4aba9e1730
diff --git a/modules/sfp_digitaloceanspace.py b/modules/sfp_digitaloceanspace.py
index aa6a6831..234f6c9c 100644
--- a/modules/sfp_digitaloceanspace.py
+++ b/modules/sfp_digitaloceanspace.py
@@ -32,13 +32,13 @@ class sfp_digitaloceanspace(SpiderFootPlugin):
"suffixes": "List of suffixes to append to domains tried as space names"
}
- results = list()
- s3results = dict()
+ results = None
+ s3results = None
def setup(self, sfc, userOpts=dict()):
self.sf = sfc
self.s3results = dict()
- self.results = list()
+ self.results = dict()
for opt in userOpts.keys():
self.opts[opt] = userOpts[opt]
@@ -54,11 +54,11 @@ class sfp_digitaloceanspace(SpiderFootPlugin):
return ["CLOUD_STORAGE_BUCKET", "CLOUD_STORAGE_BUCKET_OPEN"]
def checkSite(self, url):
- res = self.sf.fetchUrl(url, timeout=10, useragent="SpiderFoot", noLog=True)
+ res = self.sf.fetchUrl(url, timeout=10, useragent="SpiderFoot")
if res['code'] not in [ "301", "302", "200" ] and \
(res['content'] is None or "NoSuchBucket" in res['content']):
- return None
+ self.sf.debug("Not a valid bucket: " + url)
else:
if "ListBucketResult" in res['content']:
self.s3results[url] = res['content'].count("<Key>")
@@ -86,7 +86,7 @@ class sfp_digitaloceanspace(SpiderFootPlugin):
while running:
found = False
for rt in threading.enumerate():
- if rt.name.startswith("sfp_s3buckeets_"):
+ if rt.name.startswith("sfp_digitaloceanspaces_"):
found = True
if not found:
@@ -129,7 +129,7 @@ class sfp_digitaloceanspace(SpiderFootPlugin):
if eventData in self.results:
return None
else:
- self.results.append(eventData)
+ self.results[eventData] = True
self.sf.debug("Received event, " + eventName + ", from " + srcModuleName)
diff --git a/modules/sfp_socialprofiles.py b/modules/sfp_socialprofiles.py
index a14bdb68..6428dc02 100644
--- a/modules/sfp_socialprofiles.py
+++ b/modules/sfp_socialprofiles.py
@@ -170,6 +170,7 @@ class sfp_socialprofiles(SpiderFootPlugin):
continue
self.sf.info("Social Media Profile found at " + site + ": " + match)
+ match = urllib2.unquote(match)
evt = SpiderFootEvent("SOCIAL_MEDIA", site + ": " + match,
self.__name__, event)
self.notifyListeners(evt)
diff --git a/modules/sfp_wikileaks.py b/modules/sfp_wikileaks.py
index 8eb1220e..3e6447a6 100644
--- a/modules/sfp_wikileaks.py
+++ b/modules/sfp_wikileaks.py
@@ -19,8 +19,6 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
class sfp_wikileaks(SpiderFootPlugin):
"""Wikileaks:Footprint,Investigate,Passive:Leaks, Dumps and Breaches::Search Wikileaks for mentions of domain names and e-mail addresses."""
-
-
# Default options
opts = {
'daysback': 365,
@@ -33,18 +31,18 @@ class sfp_wikileaks(SpiderFootPlugin):
'external': "Include external leak sources such as Associated Twitter accounts, Snowden + Hammond Documents, Cryptome Documents, ICWatch, This Day in WikiLeaks Blog and WikiLeaks Press, WL Central."
}
- results = list()
+ results = dict()
def setup(self, sfc, userOpts=dict()):
self.sf = sfc
- self.results = list()
+ self.results = dict()
for opt in userOpts.keys():
self.opts[opt] = userOpts[opt]
# What events is this module interested in for input
def watchedEvents(self):
- return ["DOMAIN_NAME", "EMAILADDR"]
+ return ["DOMAIN_NAME", "EMAILADDR", "HUMAN_NAME"]
# What events this module produces
# This is to support the end user in selecting modules based on events
@@ -66,7 +64,7 @@ class sfp_wikileaks(SpiderFootPlugin):
self.sf.debug("Skipping " + eventData + " as already mapped.")
return None
else:
- self.results.append(eventData)
+ self.results[eventData] = True
if self.opts['external']:
external = "True"