SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Fix whitespace
Brendan Coles6cb456039e12
diff --git a/modules/sfp__stor_stdout.py b/modules/sfp__stor_stdout.pyindex 77323048..17f64886 100644--- a/modules/sfp__stor_stdout.py+++ b/modules/sfp__stor_stdout.py@@ -94,7 +94,7 @@ class sfp__stor_stdout(SpiderFootPlugin):if self.firstEvent:self.firstEvent = Falseelse:- print(",")+ print(",")print(json.dumps(d), end='')# Handle events sent to this modulediff --git a/modules/sfp_abusech.py b/modules/sfp_abusech.pyindex 18585978..0bec5234 100644--- a/modules/sfp_abusech.py+++ b/modules/sfp_abusech.py@@ -185,7 +185,7 @@ class sfp_abusech(SpiderFootPlugin):# If we're looking at netblocksif targetType == "netblock":iplist = list()- # Get the regex, replace {0} with an IP address matcher to+ # Get the regex, replace {0} with an IP address matcher to# build a list of IP.# Cycle through each IP and check if it's in the netblock.if 'regex' in malchecks[check]:diff --git a/modules/sfp_abuseipdb.py b/modules/sfp_abuseipdb.pyindex f819dcab..b7d9cbac 100644--- a/modules/sfp_abuseipdb.py+++ b/modules/sfp_abuseipdb.py@@ -69,7 +69,7 @@ class sfp_abuseipdb(SpiderFootPlugin):# What events is this module interested in for input# * = be notified about all events.def watchedEvents(self):- return ["IP_ADDRESS", "AFFILIATE_IPADDR", "NETBLOCK_OWNER", "NETBLOCK_MEMBER"]+ return ["IP_ADDRESS", "AFFILIATE_IPADDR", "NETBLOCK_OWNER", "NETBLOCK_MEMBER"]# What events this module produces# This is to support the end user in selecting modules based on events@@ -108,7 +108,7 @@ class sfp_abuseipdb(SpiderFootPlugin):if id == cid and malchecks[check]['type'] == "query":url = str(malchecks[check]['url'])res = self.sf.fetchUrl(url.format(target, apikey, daysback),- timeout=self.opts['_fetchtimeout'],+ timeout=self.opts['_fetchtimeout'],useragent=self.opts['_useragent'])if res['content'] is None:self.sf.error("Unable to fetch " + url.format(target, "masked", daysback), False)diff --git a/modules/sfp_accounts.py b/modules/sfp_accounts.pyindex 1aa376d0..e58b61a7 100644--- a/modules/sfp_accounts.py+++ b/modules/sfp_accounts.py@@ -1,7 +1,7 @@# -*- coding: utf-8 -*-# -------------------------------------------------------------------------------# Name: sfp_accounts-# Purpose: Identify the existence of a given acount on various sites thanks+# Purpose: Identify the existence of a given acount on various sites thanks# to Micah Hoffman's (https://github.com/WebBreacher) list.## Author: Steve Micallef <[email protected]>@@ -118,7 +118,7 @@ class sfp_accounts(SpiderFootPlugin):if site['account_existence_code']:if site['account_existence_code'] == res['code']:found = True- if site['account_missing_code']:+ if site['account_missing_code']:if site['account_missing_code'] == res['code']:found = Falseif site['account_existence_string']:@@ -174,7 +174,7 @@ class sfp_accounts(SpiderFootPlugin):if not found:running = False- time.sleep(0.25)+ time.sleep(0.25)# Return once the scanning has completedreturn self.siteResultsdiff --git a/modules/sfp_ahmia.py b/modules/sfp_ahmia.pyindex 72c61229..2cb907b8 100644--- a/modules/sfp_ahmia.py+++ b/modules/sfp_ahmia.py@@ -1,7 +1,7 @@# -*- coding: utf-8 -*-# -------------------------------------------------------------------------------# Name: sfp_ahmia-# Purpose: Searches the Tor search engine 'Ahmia' for content related+# Purpose: Searches the Tor search engine 'Ahmia' for content related# to the domain in question.## Author: Steve Micallef <[email protected]>@@ -78,7 +78,7 @@ class sfp_ahmia(SpiderFootPlugin):if self.checkForStop():return None- links = re.findall("redirect_url=(.[^\"]+)\"",+ links = re.findall("redirect_url=(.[^\"]+)\"",data['content'], re.IGNORECASE | re.DOTALL)reported = Falsediff --git a/modules/sfp_alienvault.py b/modules/sfp_alienvault.pyindex e255b873..c3bb548a 100644--- a/modules/sfp_alienvault.py+++ b/modules/sfp_alienvault.py@@ -61,7 +61,7 @@ class sfp_alienvault(SpiderFootPlugin):# What events is this module interested in for inputdef watchedEvents(self):- return ["IP_ADDRESS", "AFFILIATE_IPADDR",+ return ["IP_ADDRESS", "AFFILIATE_IPADDR","NETBLOCK_OWNER", "NETBLOCK_MEMBER"]# What events this module produces@@ -87,7 +87,7 @@ class sfp_alienvault(SpiderFootPlugin):'Accept': 'application/json','X-OTX-API-KEY': self.opts['api_key']}- res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],+ res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],useragent="SpiderFoot", headers=headers)if res['code'] == "403":diff --git a/modules/sfp_alienvaultiprep.py b/modules/sfp_alienvaultiprep.pyindex b1a2ea21..1dea1523 100644--- a/modules/sfp_alienvaultiprep.py+++ b/modules/sfp_alienvaultiprep.py@@ -138,7 +138,7 @@ class sfp_alienvaultiprep(SpiderFootPlugin):# If we're looking at netblocksif targetType == "netblock":iplist = list()- # Get the regex, replace {0} with an IP address matcher to+ # Get the regex, replace {0} with an IP address matcher to# build a list of IP.# Cycle through each IP and check if it's in the netblock.if 'regex' in malchecks[check]:diff --git a/modules/sfp_apility.py b/modules/sfp_apility.pyindex 0fdedfe0..4d72a378 100644--- a/modules/sfp_apility.py+++ b/modules/sfp_apility.py@@ -85,7 +85,7 @@ class sfp_apility(SpiderFootPlugin):return self.parseApiResponse(res)-+# Query IP REST API# https://apility.io/apidocs/#full-ip-address-reputation# Note: currently unuseddiff --git a/modules/sfp_archiveorg.py b/modules/sfp_archiveorg.pyindex 6b5fbb03..10044cfc 100644--- a/modules/sfp_archiveorg.py+++ b/modules/sfp_archiveorg.py@@ -68,9 +68,9 @@ class sfp_archiveorg(SpiderFootPlugin):# This is to support the end user in selecting modules based on events# produced.def producedEvents(self):- return ["INTERESTING_FILE_HISTORIC", "URL_PASSWORD_HISTORIC",+ return ["INTERESTING_FILE_HISTORIC", "URL_PASSWORD_HISTORIC","URL_FORM_HISTORIC", "URL_FLASH_HISTORIC",- "URL_STATIC_HISTORIC", "URL_JAVA_APPLET_HISTORIC",+ "URL_STATIC_HISTORIC", "URL_JAVA_APPLET_HISTORIC","URL_UPLOAD_HISTORIC", "URL_WEB_FRAMEWORK_HISTORIC","URL_JAVASCRIPT_HISTORIC"]@@ -112,7 +112,7 @@ class sfp_archiveorg(SpiderFootPlugin):url = "https://archive.org/wayback/available?url=" + eventData + \"×tamp=" + maxDate- res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],+ res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],useragent=self.opts['_useragent'])if res['content'] == None:diff --git a/modules/sfp_arin.py b/modules/sfp_arin.pyindex 9b7f8b94..c91a512d 100644--- a/modules/sfp_arin.py+++ b/modules/sfp_arin.py@@ -1,7 +1,7 @@# -*- coding: utf-8 -*-# -------------------------------------------------------------------------------# Name: sfp_arin-# Purpose: Queries the ARIN internet registry to get netblocks and other+# Purpose: Queries the ARIN internet registry to get netblocks and other# bits of info.## Author: Steve Micallef <[email protected]>@@ -134,7 +134,7 @@ class sfp_arin(SpiderFootPlugin):# the names are separated in the content and sfp_names# won't recognise it. So we submit this and see if it# really is considered a name.- evt = SpiderFootEvent("RAW_RIR_DATA", "Possible full name: " + name,+ evt = SpiderFootEvent("RAW_RIR_DATA", "Possible full name: " + name,self.__name__, self.currentEventSrc)self.notifyListeners(evt)@@ -158,5 +158,5 @@ class sfp_arin(SpiderFootPlugin):# We just want the raw data so we can get potential# e-mail addresses.self.query("contact", p['$'])-+# End of sfp_arin classdiff --git a/modules/sfp_azureblobstorage.py b/modules/sfp_azureblobstorage.pyindex 9a706831..c20cc362 100644--- a/modules/sfp_azureblobstorage.py+++ b/modules/sfp_azureblobstorage.py@@ -1,7 +1,7 @@# -*- coding: utf-8 -*-# -------------------------------------------------------------------------------# Name: sfp_azureblobstorage-# Purpose: SpiderFoot plug-in for identifying potential Azure blobs related+# Purpose: SpiderFoot plug-in for identifying potential Azure blobs related# to the target.## Author: Steve Micallef <[email protected]>diff --git a/modules/sfp_badipscom.py b/modules/sfp_badipscom.pyindex 40a9326a..9f13d636 100644--- a/modules/sfp_badipscom.py+++ b/modules/sfp_badipscom.py@@ -137,7 +137,7 @@ class sfp_badipscom(SpiderFootPlugin):# If we're looking at netblocksif targetType == "netblock":iplist = list()- # Get the regex, replace {0} with an IP address matcher to+ # Get the regex, replace {0} with an IP address matcher to# build a list of IP.# Cycle through each IP and check if it's in the netblock.if 'regex' in malchecks[check]:diff --git a/modules/sfp_bambenek.py b/modules/sfp_bambenek.pyindex dc97942f..caaa1fe1 100644--- a/modules/sfp_bambenek.py+++ b/modules/sfp_bambenek.py@@ -150,7 +150,7 @@ class sfp_bambenek(SpiderFootPlugin):# If we're looking at netblocksif targetType == "netblock":iplist = list()- # Get the regex, replace {0} with an IP address matcher to+ # Get the regex, replace {0} with an IP address matcher to# build a list of IP.# Cycle through each IP and check if it's in the netblock.if 'regex' in malchecks[check]:diff --git a/modules/sfp_bgpview.py b/modules/sfp_bgpview.pyindex bb22316b..abafd5e8 100644--- a/modules/sfp_bgpview.py+++ b/modules/sfp_bgpview.py@@ -95,7 +95,7 @@ class sfp_bgpview(SpiderFootPlugin):return Nonereturn data-+def queryIp(self, qry):res = self.sf.fetchUrl("https://api.bgpview.io/ip/" + qry,useragent=self.opts['_useragent'],diff --git a/modules/sfp_binaryedge.py b/modules/sfp_binaryedge.pyindex 9ef64324..b167e518 100644--- a/modules/sfp_binaryedge.py+++ b/modules/sfp_binaryedge.py@@ -74,13 +74,13 @@ class sfp_binaryedge(SpiderFootPlugin):# What events is this module interested in for inputdef watchedEvents(self):- return ["IP_ADDRESS", "DOMAIN_NAME", "EMAILADDR",+ return ["IP_ADDRESS", "DOMAIN_NAME", "EMAILADDR","NETBLOCK_OWNER", "NETBLOCK_MEMBER" ]# What events this module producesdef producedEvents(self):return ["INTERNET_NAME", "VULNERABILITY", "TCP_PORT_OPEN",- "TCP_PORT_OPEN_BANNER", "EMAILADDR_COMPROMISED",+ "TCP_PORT_OPEN_BANNER", "EMAILADDR_COMPROMISED","UDP_PORT_OPEN", "UDP_PORT_OPEN_INFO", "DOMAIN_NAME","CO_HOSTED_SITE", "MALICIOUS_IPADDR"]@@ -103,13 +103,13 @@ class sfp_binaryedge(SpiderFootPlugin):queryurl = "/v2/query/domains/subdomain/{0}?page={1}"if querytype == "passive":queryurl = "/v2/query/domains/ip/{0}?page={1}"-+binaryedgeurl = "https://api.binaryedge.io"headers = {'X-Key': self.opts['binaryedge_api_key']}url = binaryedgeurl + queryurl.format(qry.encode('utf-8', errors='replace'), page)- res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],+ res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],useragent="SpiderFoot", headers=headers)if res['code'] in [ "429", "500" ]:diff --git a/modules/sfp_binstring.py b/modules/sfp_binstring.pyindex 8e147808..b8ef91d4 100644--- a/modules/sfp_binstring.py+++ b/modules/sfp_binstring.py@@ -88,7 +88,7 @@ class sfp_binstring(SpiderFootPlugin):if accept:words.append(result)-+result = ""if len(words) == 0:@@ -125,11 +125,11 @@ class sfp_binstring(SpiderFootPlugin):res = Nonefor fileExt in self.opts['fileexts']:if eventData.lower().endswith("." + fileExt.lower()) or "." + fileExt + "?" in eventData.lower():- res = self.sf.fetchUrl(eventData,- useragent=self.opts['_useragent'],+ res = self.sf.fetchUrl(eventData,+ useragent=self.opts['_useragent'],dontMangle=True,sizeLimit=self.opts['maxfilesize'])-+if res:self.sf.debug("Searching for strings")words = self.getStrings(res['content'])diff --git a/modules/sfp_bitcoin.py b/modules/sfp_bitcoin.pyindex 726ee547..6f296ad6 100644--- a/modules/sfp_bitcoin.py+++ b/modules/sfp_bitcoin.py@@ -45,7 +45,7 @@ class sfp_bitcoin(SpiderFootPlugin):h = '%x' % ns = codecs.decode(('0'*(len(h) % 2) + h).zfill(length*2), "hex")return s-+def decode_base58(self, bc, length):digits58 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'n = 0@@ -56,7 +56,7 @@ class sfp_bitcoin(SpiderFootPlugin):def check_bc(self, bc):bcbytes = self.decode_base58(bc, 25)return bcbytes[-4:] == sha256(sha256(bcbytes[:-4]).digest()).digest()[:4]-+# Handle events sent to this moduledef handleEvent(self, event):eventName = event.eventTypediff --git a/modules/sfp_blockchain.py b/modules/sfp_blockchain.pyindex 56ed9256..f4a0a130 100644--- a/modules/sfp_blockchain.py+++ b/modules/sfp_blockchain.py@@ -1,7 +1,7 @@# -*- coding: utf-8 -*-# -------------------------------------------------------------------------------# Name: sfp_blockchain-# Purpose: SpiderFoot plug-in to look up a bitcoin wallet's balance by+# Purpose: SpiderFoot plug-in to look up a bitcoin wallet's balance by# querying blockchain.info.## Author: Steve Micallef <[email protected]>diff --git a/modules/sfp_blocklistde.py b/modules/sfp_blocklistde.pyindex 62303fa4..a3f125ca 100644--- a/modules/sfp_blocklistde.py+++ b/modules/sfp_blocklistde.py@@ -73,7 +73,7 @@ class sfp_blocklistde(SpiderFootPlugin):# This is to support the end user in selecting modules based on events# produced.def producedEvents(self):- return ["MALICIOUS_IPADDR", "MALICIOUS_AFFILIATE_IPADDR",+ return ["MALICIOUS_IPADDR", "MALICIOUS_AFFILIATE_IPADDR","MALICIOUS_SUBNET", "MALICIOUS_NETBLOCK"]# Check the regexps to see whether the content indicates maliciousness@@ -138,7 +138,7 @@ class sfp_blocklistde(SpiderFootPlugin):# If we're looking at netblocksif targetType == "netblock":iplist = list()- # Get the regex, replace {0} with an IP address matcher to+ # Get the regex, replace {0} with an IP address matcher to# build a list of IP.# Cycle through each IP and check if it's in the netblock.if 'regex' in malchecks[check]:diff --git a/modules/sfp_botscout.py b/modules/sfp_botscout.pyindex 5e280bc5..7b30a0ff 100644--- a/modules/sfp_botscout.py+++ b/modules/sfp_botscout.py@@ -1,7 +1,7 @@# -*- coding: utf-8 -*-# -------------------------------------------------------------------------------# Name: sfp_botscout-# Purpose: SpiderFoot plug-in to search botsout.com using their API, for+# Purpose: SpiderFoot plug-in to search botsout.com using their API, for# potential malicious IPs and e-mail addresses.## Author: Steve Micallef <[email protected]>@@ -36,7 +36,7 @@ class sfp_botscout(SpiderFootPlugin):# What events is this module interested in for inputdef watchedEvents(self):- return ['IP_ADDRESS','EMAILADDR']+ return ['IP_ADDRESS', 'EMAILADDR']# What events this module produces# This is to support the end user in selecting modules based on events@@ -73,7 +73,7 @@ class sfp_botscout(SpiderFootPlugin):url = "http://botscout.com/test/?all="res = self.sf.fetchUrl(url + eventData,- timeout=self.opts['_fetchtimeout'],+ timeout=self.opts['_fetchtimeout'],useragent=self.opts['_useragent'])if res['content'] is None or "|" not in res['content']:self.sf.error("Error encountered processing " + eventData, False)diff --git a/modules/sfp_builtwith.py b/modules/sfp_builtwith.pyindex f3e9df5c..06a48eed 100644--- a/modules/sfp_builtwith.py+++ b/modules/sfp_builtwith.py@@ -20,7 +20,7 @@ class sfp_builtwith(SpiderFootPlugin):# Default options- opts = {+ opts = {"api_key": "","maxage": 30}@@ -54,7 +54,7 @@ class sfp_builtwith(SpiderFootPlugin):# What events this module producesdef producedEvents(self):- return [ "INTERNET_NAME", "EMAILADDR", "RAW_RIR_DATA",+ return [ "INTERNET_NAME", "EMAILADDR", "RAW_RIR_DATA","WEBSERVER_TECHNOLOGY", "PHONE_NUMBER", "DOMAIN_NAME" ]def query(self, t):@@ -62,7 +62,7 @@ class sfp_builtwith(SpiderFootPlugin):url = "https://api.builtwith.com/v11/api.json?LOOKUP=" + t + "&KEY=" + self.opts['api_key']- res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],+ res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],useragent="SpiderFoot")if res['code'] == "404":@@ -95,7 +95,7 @@ class sfp_builtwith(SpiderFootPlugin):self.errorState = Truereturn None- # Don't look up stuff twice+ # Don't look up stuff twiceif eventData in self.results:self.sf.debug("Skipping " + eventData + " as already mapped.")return None@@ -111,12 +111,12 @@ class sfp_builtwith(SpiderFootPlugin):pat = re.compile("([\%a-zA-Z\.0-9_\-\+]+@[a-zA-Z\.0-9\-]+\.[a-zA-Z\.0-9\-]+)")if data['Meta'].get("Names", []):for nb in data['Meta']['Names']:- e = SpiderFootEvent("RAW_RIR_DATA", "Possible full name: " + nb['Name'],+ e = SpiderFootEvent("RAW_RIR_DATA", "Possible full name: " + nb['Name'],self.__name__, event)self.notifyListeners(e)if nb.get('Email', None):if (re.match(pat, nb['Email'])):- e = SpiderFootEvent("EMAILADDR", nb['Email'],+ e = SpiderFootEvent("EMAILADDR", nb['Email'],self.__name__, event)self.notifyListeners(e)diff --git a/modules/sfp_censys.py b/modules/sfp_censys.pyindex 78080e81..23fcf7af 100644--- a/modules/sfp_censys.py+++ b/modules/sfp_censys.py@@ -56,7 +56,7 @@ class sfp_censys(SpiderFootPlugin):# What events this module producesdef producedEvents(self):- return ["BGP_AS_MEMBER", "TCP_PORT_OPEN", "OPERATING_SYSTEM",+ return ["BGP_AS_MEMBER", "TCP_PORT_OPEN", "OPERATING_SYSTEM","WEBSERVER_HTTPHEADERS", "NETBLOCK_MEMBER", "GEOINFO",'RAW_RIR_DATA']@@ -67,7 +67,7 @@ class sfp_censys(SpiderFootPlugin):querytype = "ipv4/{0}"if querytype == "host":querytype = "websites/{0}"-+secret = self.opts['censys_api_key_uid'] + ':' + self.opts['censys_api_key_secret']b64_val = base64.b64encode(secret.encode('utf-8'))headers = {@@ -202,5 +202,5 @@ class sfp_censys(SpiderFootPlugin):self.notifyListeners(e)except BaseException as e:self.sf.error("Error encountered processing record for " + eventData + " (" + str(e) + ")", False)-+# End of sfp_censys classdiff --git a/modules/sfp_cinsscore.py b/modules/sfp_cinsscore.pyindex a27ee737..3c630795 100644--- a/modules/sfp_cinsscore.py+++ b/modules/sfp_cinsscore.py@@ -136,7 +136,7 @@ class sfp_cinsscore(SpiderFootPlugin):# If we're looking at netblocksif targetType == "netblock":iplist = list()- # Get the regex, replace {0} with an IP address matcher to+ # Get the regex, replace {0} with an IP address matcher to# build a list of IP.# Cycle through each IP and check if it's in the netblock.if 'regex' in malchecks[check]:diff --git a/modules/sfp_circllu.py b/modules/sfp_circllu.pyindex 7e6ee3f5..60734821 100644--- a/modules/sfp_circllu.py+++ b/modules/sfp_circllu.py@@ -84,7 +84,7 @@ class sfp_circllu(SpiderFootPlugin):}# Be more forgiving with the timeout as some queries for subnets can be slow- res = self.sf.fetchUrl(url , timeout=30,+ res = self.sf.fetchUrl(url, timeout=30,useragent="SpiderFoot", headers=headers)if res['code'] in [ "400", "429", "500", "403" ]:@@ -154,7 +154,7 @@ class sfp_circllu(SpiderFootPlugin):ipe = SpiderFootEvent("IP_ADDRESS", ip, self.__name__, event)self.notifyListeners(ipe)for crt in j[ip]['subjects']:- r = re.findall(".*[\"\'](.+CN=([a-zA-Z0-9\-\*\.])+)[\"\'].*",+ r = re.findall(".*[\"\'](.+CN=([a-zA-Z0-9\-\*\.])+)[\"\'].*",str(j[ip]['subjects'][crt]), re.IGNORECASE)if r:e = SpiderFootEvent("SSL_CERTIFICATE_ISSUED", r[0][0], self.__name__, ipe)diff --git a/modules/sfp_citadel.py b/modules/sfp_citadel.pyindex f5ba90af..360befa5 100644--- a/modules/sfp_citadel.py+++ b/modules/sfp_citadel.py@@ -89,8 +89,8 @@ class sfp_citadel(SpiderFootPlugin):if self.errorState:return None-- # Don't look up stuff twice++ # Don't look up stuff twiceif eventData in self.results:self.sf.debug("Skipping " + eventData + " as already searched.")return Nonediff --git a/modules/sfp_cleantalk.py b/modules/sfp_cleantalk.pyindex 9f985d0d..007b4dc8 100644--- a/modules/sfp_cleantalk.py+++ b/modules/sfp_cleantalk.py@@ -136,7 +136,7 @@ class sfp_cleantalk(SpiderFootPlugin):# If we're looking at netblocksif targetType == "netblock":iplist = list()- # Get the regex, replace {0} with an IP address matcher to+ # Get the regex, replace {0} with an IP address matcher to# build a list of IP.# Cycle through each IP and check if it's in the netblock.if 'regex' in malchecks[check]:diff --git a/modules/sfp_clearbit.py b/modules/sfp_clearbit.pyindex 8dad297f..55a43f4d 100644--- a/modules/sfp_clearbit.py+++ b/modules/sfp_clearbit.py@@ -17,7 +17,7 @@ class sfp_clearbit(SpiderFootPlugin):"""Clearbit:Footprint,Investigate,Passive:Search Engines:apikey:Check for names, addresses, domains and more based on lookups of e-mail addresses on clearbit.com."""# Default options- opts = {+ opts = {"api_key": ""}@@ -65,11 +65,11 @@ class sfp_clearbit(SpiderFootPlugin):'Authorization': "Basic " + token.decode('utf-8')}- res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],+ res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],useragent="SpiderFoot", headers=headers)if res['code'] != "200":- self.sf.error("Return code indicates no results or potential API key failure or exceeded limits.",+ self.sf.error("Return code indicates no results or potential API key failure or exceeded limits.",False)return None@@ -98,7 +98,7 @@ class sfp_clearbit(SpiderFootPlugin):self.sf.debug("Received event, " + eventName + ", from " + srcModuleName)- # Don't look up stuff twice+ # Don't look up stuff twiceif eventData in self.results:self.sf.debug("Skipping " + eventData + " as already mapped.")return None@@ -113,7 +113,7 @@ class sfp_clearbit(SpiderFootPlugin):# Get the name associated with the e-mailif "person" in data:name = data['person']['name']['fullName']- evt = SpiderFootEvent("RAW_RIR_DATA", "Possible full name: " + name,+ evt = SpiderFootEvent("RAW_RIR_DATA", "Possible full name: " + name,self.__name__, event)self.notifyListeners(evt)except Exception:@@ -148,7 +148,7 @@ class sfp_clearbit(SpiderFootPlugin):if "company" in data:if 'domainAliases' in data['company']:for d in data['company']['domainAliases']:- evt = SpiderFootEvent("AFFILIATE_INTERNET_NAME", d,+ evt = SpiderFootEvent("AFFILIATE_INTERNET_NAME", d,self.__name__, event)self.notifyListeners(evt)@@ -166,7 +166,7 @@ class sfp_clearbit(SpiderFootPlugin):# the location of the employer.if 'geo' in data['company']:loc = ""-+if 'streetNumber' in data['company']['geo']:loc += data['company']['geo']['streetNumber'] + ", "if 'streetName' in data['company']['geo']:diff --git a/modules/sfp_coinblocker.py b/modules/sfp_coinblocker.pyindex c1bc7c9f..9358d2ab 100644--- a/modules/sfp_coinblocker.py+++ b/modules/sfp_coinblocker.py@@ -150,7 +150,7 @@ class sfp_coinblocker(SpiderFootPlugin):# If we're looking at netblocksif targetType == "netblock":iplist = list()- # Get the regex, replace {0} with an IP address matcher to+ # Get the regex, replace {0} with an IP address matcher to# build a list of IP.# Cycle through each IP and check if it's in the netblock.if 'regex' in malchecks[check]:diff --git a/modules/sfp_commoncrawl.py b/modules/sfp_commoncrawl.pyindex 3edf749e..958407d3 100644--- a/modules/sfp_commoncrawl.py+++ b/modules/sfp_commoncrawl.py@@ -49,7 +49,7 @@ class sfp_commoncrawl(SpiderFootPlugin):for index in self.indexBase:url = "https://index.commoncrawl.org/" + index + \"-index?url=" + target + "/*&output=json"- res = self.sf.fetchUrl(url , timeout=60,+ res = self.sf.fetchUrl(url, timeout=60,useragent="SpiderFoot")if res['code'] in [ "400", "401", "402", "403", "404" ]:@@ -65,10 +65,10 @@ class sfp_commoncrawl(SpiderFootPlugin):ret.append(res['content'])return ret-+def getLatestIndexes(self):url = "https://commoncrawl.s3.amazonaws.com/cc-index/collections/index.html"- res = self.sf.fetchUrl(url , timeout=60,+ res = self.sf.fetchUrl(url, timeout=60,useragent="SpiderFoot")if res['code'] in [ "400", "401", "402", "403", "404" ]:diff --git a/modules/sfp_company.py b/modules/sfp_company.pyindex 57dec1ea..a8679d40 100644--- a/modules/sfp_company.py+++ b/modules/sfp_company.py@@ -37,8 +37,8 @@ class sfp_company(SpiderFootPlugin):# What events is this module interested in for inputdef watchedEvents(self):- return ["TARGET_WEB_CONTENT", "SSL_CERTIFICATE_ISSUED",- "DOMAIN_WHOIS", "NETBLOCK_WHOIS",+ return ["TARGET_WEB_CONTENT", "SSL_CERTIFICATE_ISSUED",+ "DOMAIN_WHOIS", "NETBLOCK_WHOIS","AFFILIATE_DOMAIN_WHOIS", "AFFILIATE_WEB_CONTENT"]# What events this module produces@@ -58,7 +58,7 @@ class sfp_company(SpiderFootPlugin):# a capital letter, allowing for hyphens brackets and numbers within.pattern_prefix = "(?=[,;:\'\">\(= ]|^)\s?([A-Z0-9\(\)][A-Za-z0-9\-&,\.][^ \"\';:><]*)?\s?([A-Z0-9\(\)][A-Za-z0-9\-&,\.]?[^ \"\';:><]*|[Aa]nd)?\s?([A-Z0-9\(\)][A-Za-z0-9\-&,\.]?[^ \"\';:><]*)?\s+"pattern_match_re = [- 'LLC', 'L\.L\.C\.?', 'AG', 'A\.G\.?', 'GmbH', 'Pty\.?\s+Ltd\.?',+ 'LLC', 'L\.L\.C\.?', 'AG', 'A\.G\.?', 'GmbH', 'Pty\.?\s+Ltd\.?','Ltd\.?', 'Pte\.?', 'Inc\.?', 'INC\.?', 'Incorporated', 'Foundation','Corp\.?', 'Corporation', 'SA', 'S\.A\.?', 'SIA', 'BV', 'B\.V\.?','NV', 'N\.V\.?' 'PLC', 'Limited', 'Pvt\.?\s+Ltd\.?', 'SARL' ]@@ -142,12 +142,12 @@ class sfp_company(SpiderFootPlugin):flt = Falsefor f in filterpatterns:if re.match(f, m):- flt = True+ flt = Trueif not flt:fullcompany += m + " "fullcompany = re.sub("\s+", " ", fullcompany.strip())-+self.sf.info("Found company name: " + fullcompany)if fullcompany in myres:self.sf.debug("Already found from this source.")diff --git a/modules/sfp_crossref.py b/modules/sfp_crossref.pyindex 4a0491b7..31089d50 100644--- a/modules/sfp_crossref.py+++ b/modules/sfp_crossref.py@@ -60,7 +60,7 @@ class sfp_crossref(SpiderFootPlugin):self.sf.debug("Received event, " + eventName + ", from " + srcModuleName)- # The SIMILARDOMAIN and CO_HOSTED_SITE events supply domains,+ # The SIMILARDOMAIN and CO_HOSTED_SITE events supply domains,# not URLs. Assume HTTP.if eventName in ['SIMILARDOMAIN', 'CO_HOSTED_SITE']:eventData = 'http://' + eventData.lower()diff --git a/modules/sfp_crt.py b/modules/sfp_crt.pyindex e40a1481..21d68124 100644--- a/modules/sfp_crt.py+++ b/modules/sfp_crt.py@@ -46,7 +46,7 @@ class sfp_crt(SpiderFootPlugin):def producedEvents(self):return ["SSL_CERTIFICATE_RAW", "RAW_RIR_DATA",'INTERNET_NAME', 'INTERNET_NAME_UNRESOLVED', 'DOMAIN_NAME',- 'AFFILIATE_INTERNET_NAME', 'AFFILIATE_INTERNET_NAME_UNRESOLVED',+ 'AFFILIATE_INTERNET_NAME', 'AFFILIATE_INTERNET_NAME_UNRESOLVED','AFFILIATE_DOMAIN_NAME']# Handle events sent to this modulediff --git a/modules/sfp_customfeed.py b/modules/sfp_customfeed.pyindex e2aca5e8..f5449b1a 100644--- a/modules/sfp_customfeed.py+++ b/modules/sfp_customfeed.py@@ -30,7 +30,7 @@ class sfp_customfeed(SpiderFootPlugin):# Default optionsopts = {'_customfeed': True,- 'checkaffiliates': True,+ 'checkaffiliates': True,'checkcohosts': True,'url': "",'cacheperiod': 0@@ -64,7 +64,7 @@ class sfp_customfeed(SpiderFootPlugin):# What events is this module interested in for input# * = be notified about all events.def watchedEvents(self):- return ["INTERNET_NAME", "IP_ADDRESS", "AFFILIATE_INTERNET_NAME",+ return ["INTERNET_NAME", "IP_ADDRESS", "AFFILIATE_INTERNET_NAME","AFFILIATE_IPADDR", "CO_HOSTED_SITE"]# What events this module produces@@ -119,7 +119,7 @@ class sfp_customfeed(SpiderFootPlugin):# If we're looking at netblocksif targetType == "netblock":iplist = list()- # Get the regex, replace {0} with an IP address matcher to+ # Get the regex, replace {0} with an IP address matcher to# build a list of IP.# Cycle through each IP and check if it's in the netblock.if 'regex' in malchecks[check]:diff --git a/modules/sfp_cybercrimetracker.py b/modules/sfp_cybercrimetracker.pyindex 7bcaf49a..7fb03b3e 100644--- a/modules/sfp_cybercrimetracker.py+++ b/modules/sfp_cybercrimetracker.py@@ -137,7 +137,7 @@ class sfp_cybercrimetracker(SpiderFootPlugin):# If we're looking at netblocksif targetType == "netblock":iplist = list()- # Get the regex, replace {0} with an IP address matcher to+ # Get the regex, replace {0} with an IP address matcher to# build a list of IP.# Cycle through each IP and check if it's in the netblock.if 'regex' in malchecks[check]:diff --git a/modules/sfp_digitaloceanspace.py b/modules/sfp_digitaloceanspace.pyindex 8fa4ed4c..a7789e80 100644--- a/modules/sfp_digitaloceanspace.py+++ b/modules/sfp_digitaloceanspace.py@@ -164,7 +164,7 @@ class sfp_digitaloceanspace(SpiderFootPlugin):evt = SpiderFootEvent("CLOUD_STORAGE_BUCKET", bucket[0] + ":" + bucket[1], self.__name__, event)self.notifyListeners(evt)if bucket[2] != "0":- evt = SpiderFootEvent("CLOUD_STORAGE_BUCKET_OPEN", bucket[0] + ":" + bucket[1] + ": " + bucket[2] + " files found.",+ evt = SpiderFootEvent("CLOUD_STORAGE_BUCKET_OPEN", bucket[0] + ":" + bucket[1] + ": " + bucket[2] + " files found.",self.__name__, evt)self.notifyListeners(evt)diff --git a/modules/sfp_dnsneighbor.py b/modules/sfp_dnsneighbor.pyindex ea29998b..72299b11 100644--- a/modules/sfp_dnsneighbor.py+++ b/modules/sfp_dnsneighbor.py@@ -157,7 +157,7 @@ class sfp_dnsneighbor(SpiderFootPlugin):if self.getTarget().matches(host):affil = False# If the IP the host resolves to is in our- # list of aliases,+ # list of aliases,if not self.sf.validIP(host):hostips = self.sf.resolveHost(host)if hostips:diff --git a/modules/sfp_dnsresolve.py b/modules/sfp_dnsresolve.pyindex 3dfec71e..5fc5d787 100644--- a/modules/sfp_dnsresolve.py+++ b/modules/sfp_dnsresolve.py@@ -149,7 +149,7 @@ class sfp_dnsresolve(SpiderFootPlugin):return None# Search for IPs/hosts in raw data- if eventName not in [ "CO_HOSTED_SITE", "AFFILIATE_INTERNET_NAME",+ if eventName not in [ "CO_HOSTED_SITE", "AFFILIATE_INTERNET_NAME","NETBLOCK_OWNER", "IP_ADDRESS", "IPV6_ADDRESS","INTERNET_NAME", "AFFILIATE_IPADDR"]:data = urllib.parse.unquote(eventData).lower()@@ -283,7 +283,7 @@ class sfp_dnsresolve(SpiderFootPlugin):if self.getTarget().matches(host):affil = False# If the IP the host resolves to is in our- # list of aliases,+ # list of aliases,if not self.sf.validIP(host):hostips = self.sf.resolveHost(host)if hostips:@@ -309,7 +309,7 @@ class sfp_dnsresolve(SpiderFootPlugin):if htype.endswith("INTERNET_NAME"):resolved = self.sf.resolveHost(host)if htype == "INTERNET_NAME" and not resolved:- evt = SpiderFootEvent("INTERNET_NAME_UNRESOLVED", host,+ evt = SpiderFootEvent("INTERNET_NAME_UNRESOLVED", host,self.__name__, parentEvent)self.notifyListeners(evt)return Nonediff --git a/modules/sfp_duckduckgo.py b/modules/sfp_duckduckgo.pyindex 26e96f82..8271bbfd 100644--- a/modules/sfp_duckduckgo.py+++ b/modules/sfp_duckduckgo.py@@ -45,7 +45,7 @@ class sfp_duckduckgo(SpiderFootPlugin):# produced.def producedEvents(self):return ["DESCRIPTION_CATEGORY", "DESCRIPTION_ABSTRACT",- "AFFILIATE_DESCRIPTION_CATEGORY",+ "AFFILIATE_DESCRIPTION_CATEGORY","AFFILIATE_DESCRIPTION_ABSTRACT"]@@ -90,7 +90,7 @@ class sfp_duckduckgo(SpiderFootPlugin):if "AFFILIATE" in eventName:name = "AFFILIATE_" + name- evt = SpiderFootEvent(name, ret['AbstractText'],+ evt = SpiderFootEvent(name, ret['AbstractText'],self.__name__, event)self.notifyListeners(evt)diff --git a/modules/sfp_flickr.py b/modules/sfp_flickr.pyindex 9f50d7c6..3fdbefab 100644--- a/modules/sfp_flickr.py+++ b/modules/sfp_flickr.py@@ -30,7 +30,7 @@ class sfp_flickr(SpiderFootPlugin):# Option descriptionsoptdescs = {- 'pause': "Number of seconds to pause between fetches.",+ 'pause': "Number of seconds to pause between fetches.",'per_page': "Maximum number of results per page.",'maxpages': "Maximum number of pages of results to fetch."}@@ -161,6 +161,6 @@ class sfp_flickr(SpiderFootPlugin):self.results[email] = Truepage += 1- time.sleep(self.opts['pause'])+ time.sleep(self.opts['pause'])# End of sfp_flickr classdiff --git a/modules/sfp_fortinet.py b/modules/sfp_fortinet.pyindex cd2bd7e9..a47d8d64 100644--- a/modules/sfp_fortinet.py+++ b/modules/sfp_fortinet.py@@ -61,14 +61,14 @@ class sfp_fortinet(SpiderFootPlugin):# * = be notified about all events.def watchedEvents(self):return ["IP_ADDRESS", "AFFILIATE_IPADDR"]-+# What events this module produces# This is to support the end user in selecting modules based on events# produced.def producedEvents(self):return ["MALICIOUS_IPADDR", "MALICIOUS_AFFILIATE_IPADDR"]-+# Check the regexps to see whether the content indicates maliciousnessdef contentMalicious(self, content, goodregex, badregex):@@ -132,7 +132,7 @@ class sfp_fortinet(SpiderFootPlugin):# If we're looking at netblocksif targetType == "netblock":iplist = list()- # Get the regex, replace {0} with an IP address matcher to+ # Get the regex, replace {0} with an IP address matcher to# build a list of IP.# Cycle through each IP and check if it's in the netblock.if 'regex' in malchecks[check]:diff --git a/modules/sfp_fraudguard.py b/modules/sfp_fraudguard.pyindex acceead3..688b6775 100644--- a/modules/sfp_fraudguard.py+++ b/modules/sfp_fraudguard.py@@ -76,7 +76,7 @@ class sfp_fraudguard(SpiderFootPlugin):'Authorization': "Basic " + token.decode('utf-8')}- res = self.sf.fetchUrl(fraudguard_url , timeout=self.opts['_fetchtimeout'],+ res = self.sf.fetchUrl(fraudguard_url, timeout=self.opts['_fetchtimeout'],useragent="SpiderFoot", headers=headers)if res['code'] in [ "400", "429", "500", "403" ]:@@ -165,5 +165,5 @@ class sfp_fraudguard(SpiderFootPlugin):dat = rec['threat'] + " (risk level: " + rec['risk_level'] + ") [" + eventData + "]"e = SpiderFootEvent("MALICIOUS_" + rtype, dat, self.__name__, event)self.notifyListeners(e)-+# End of sfp_fraudguard classdiff --git a/modules/sfp_fsecure_riddler.py b/modules/sfp_fsecure_riddler.pyindex a6b1e944..1b92b65b 100644--- a/modules/sfp_fsecure_riddler.py+++ b/modules/sfp_fsecure_riddler.py@@ -41,7 +41,7 @@ class sfp_fsecure_riddler(SpiderFootPlugin):self.opts[opt] = userOpts[opt]def watchedEvents(self):- return ['DOMAIN_NAME', 'INTERNET_NAME',+ return ['DOMAIN_NAME', 'INTERNET_NAME','INTERNET_NAME_UNRESOLVED', 'IP_ADDRESS']def producedEvents(self):@@ -82,14 +82,14 @@ class sfp_fsecure_riddler(SpiderFootPlugin):self.sf.error('Login failed', False)self.errorState = Truereturn None-+if not token:self.sf.error('Login failed', False)self.errorState = Truereturn None-+self.token = token-+return None# https://riddler.io/help/searchdiff --git a/modules/sfp_fullcontact.py b/modules/sfp_fullcontact.pyindex bf3f2c2c..e79848a4 100644--- a/modules/sfp_fullcontact.py+++ b/modules/sfp_fullcontact.py@@ -19,7 +19,7 @@ class sfp_fullcontact(SpiderFootPlugin):# Default options- opts = {+ opts = {"api_key": "","max_age_days": "365"}@@ -53,7 +53,7 @@ class sfp_fullcontact(SpiderFootPlugin):# What events this module producesdef producedEvents(self):- return [ "EMAILADDR", "RAW_RIR_DATA", "PHONE_NUMBER",+ return [ "EMAILADDR", "RAW_RIR_DATA", "PHONE_NUMBER","GEOINFO", "PHYSICAL_ADDRESS" ]def query(self, url, data, failcount=0):@@ -61,7 +61,7 @@ class sfp_fullcontact(SpiderFootPlugin):ret = Noneres = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],- useragent="SpiderFoot", postData=json.dumps(data),+ useragent="SpiderFoot", postData=json.dumps(data),headers={"Authorization": header})if res['code'] in [ "401", "400" ]:@@ -129,7 +129,7 @@ class sfp_fullcontact(SpiderFootPlugin):self.sf.debug("Received event, " + eventName + ", from " + srcModuleName)- # Don't look up stuff twice+ # Don't look up stuff twiceif eventData in self.results:self.sf.debug("Skipping " + eventData + " as already mapped.")return None@@ -166,13 +166,13 @@ class sfp_fullcontact(SpiderFootPlugin):if data.get("locations"):for r in data['locations']:if r.get("city") and r.get("country"):- e = SpiderFootEvent("GEOINFO", r['city'] + ", " + r['country'],+ e = SpiderFootEvent("GEOINFO", r['city'] + ", " + r['country'],self.__name__, event)self.notifyListeners(e)if r.get("formatted"):# Seems to contain some junk sometimesif len(r['formatted']) > 10:- e = SpiderFootEvent("PHYSICAL_ADDRESS", r['formatted'],+ e = SpiderFootEvent("PHYSICAL_ADDRESS", r['formatted'],self.__name__, event)self.notifyListeners(e)diff --git a/modules/sfp_github.py b/modules/sfp_github.pyindex 1944a2df..d5cbc1c6 100644--- a/modules/sfp_github.py+++ b/modules/sfp_github.py@@ -1,7 +1,7 @@# -*- coding: utf-8 -*-# -------------------------------------------------------------------------------# Name: sfp_github-# Purpose: Identifies public code repositories in Github associated with+# Purpose: Identifies public code repositories in Github associated with# your target.## Author: Steve Micallef <[email protected]>@@ -139,7 +139,7 @@ class sfp_github(SpiderFootPlugin):self.sf.debug("Looking at " + name)failed = False- # Get all the repositories based on direct matches with the+ # Get all the repositories based on direct matches with the# name identifiedurl = "https://api.github.com/search/repositories?q=" + nameres = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],@@ -171,7 +171,7 @@ class sfp_github(SpiderFootPlugin):if self.opts['namesonly'] and name != item['name']:continue- evt = SpiderFootEvent("PUBLIC_CODE_REPO", repo_info,+ evt = SpiderFootEvent("PUBLIC_CODE_REPO", repo_info,self.__name__, event)self.notifyListeners(evt)@@ -211,8 +211,8 @@ class sfp_github(SpiderFootPlugin):url = item['repos_url']res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],- useragent=self.opts['_useragent'])-+ useragent=self.opts['_useragent'])+if res['content'] == None:self.sf.error("Unable to fetch " + url, False)continue@@ -231,7 +231,7 @@ class sfp_github(SpiderFootPlugin):for item in repret:if type(item) != dict:self.sf.debug("Encountered an unexpected or empty response from Github.")- continue+ continuerepo_info = self.buildRepoInfo(item)if repo_info != None:@@ -240,7 +240,7 @@ class sfp_github(SpiderFootPlugin):if eventName == "USERNAME" and "/" + name + "/" not in item.get('html_url', ''):continue- evt = SpiderFootEvent("PUBLIC_CODE_REPO", repo_info,+ evt = SpiderFootEvent("PUBLIC_CODE_REPO", repo_info,self.__name__, event)self.notifyListeners(evt)diff --git a/modules/sfp_googlemaps.py b/modules/sfp_googlemaps.pyindex 6a7a1d11..8f8ce4f0 100644--- a/modules/sfp_googlemaps.py+++ b/modules/sfp_googlemaps.py@@ -71,14 +71,14 @@ class sfp_googlemaps(SpiderFootPlugin):self.results[eventData] = Trueres = self.sf.fetchUrl("https://maps.googleapis.com/maps/api/geocode/json?address=" + \- eventData + "&key=" + self.opts['api_key'],- timeout=self.opts['_fetchtimeout'],+ eventData + "&key=" + self.opts['api_key'],+ timeout=self.opts['_fetchtimeout'],useragent=self.opts['_useragent'])if res['content'] is None:self.sf.info("No location info found for " + eventData)return None- evt = SpiderFootEvent("SEARCH_ENGINE_WEB_CONTENT", res['content'],+ evt = SpiderFootEvent("SEARCH_ENGINE_WEB_CONTENT", res['content'],self.__name__, event)self.notifyListeners(evt)@@ -90,12 +90,12 @@ class sfp_googlemaps(SpiderFootPlugin):if 'geometry' in data:lat = str(data['geometry']['location']['lat'])lng = str(data['geometry']['location']['lng'])- evt = SpiderFootEvent("PHYSICAL_COORDINATES", lat + "," + lng,+ evt = SpiderFootEvent("PHYSICAL_COORDINATES", lat + "," + lng,self.__name__, event)self.notifyListeners(evt)if 'formatted_address' in data:- evt = SpiderFootEvent("PHYSICAL_ADDRESS", data['formatted_address'],+ evt = SpiderFootEvent("PHYSICAL_ADDRESS", data['formatted_address'],self.__name__, event)self.notifyListeners(evt)except Exception as e:diff --git a/modules/sfp_gravatar.py b/modules/sfp_gravatar.pyindex df49de39..0150f217 100644--- a/modules/sfp_gravatar.py+++ b/modules/sfp_gravatar.py@@ -45,7 +45,7 @@ class sfp_gravatar(SpiderFootPlugin):# What events this module producesdef producedEvents(self):- return ['RAW_RIR_DATA', 'HUMAN_NAME', 'USERNAME',+ return ['RAW_RIR_DATA', 'HUMAN_NAME', 'USERNAME','EMAILADDR', 'PHONE_NUMBER', 'GEOINFO','ACCOUNT_EXTERNAL_OWNED', 'SOCIAL_MEDIA']diff --git a/modules/sfp_greynoise.py b/modules/sfp_greynoise.pyindex d1b9e019..01a85294 100644--- a/modules/sfp_greynoise.py+++ b/modules/sfp_greynoise.py@@ -60,7 +60,7 @@ class sfp_greynoise(SpiderFootPlugin):# What events is this module interested in for inputdef watchedEvents(self):- return ["IP_ADDRESS", "AFFILIATE_IPADDR",+ return ["IP_ADDRESS", "AFFILIATE_IPADDR","NETBLOCK_MEMBER", "NETBLOCK_OWNER"]# What events this module produces@@ -75,7 +75,7 @@ class sfp_greynoise(SpiderFootPlugin):header = { "key": self.opts['api_key'] }url = "https://" + "enterprise.api.greynoise.io/v2/experimental/gnql?query=" + qry- res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],+ res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],useragent="SpiderFoot", headers=header)if res['code'] not in [ "200" ]:diff --git a/modules/sfp_h1nobbdde.py b/modules/sfp_h1nobbdde.pyindex fb691863..a20abe9b 100644--- a/modules/sfp_h1nobbdde.py+++ b/modules/sfp_h1nobbdde.py@@ -1,6 +1,6 @@#-------------------------------------------------------------------------------# Name: sfp_h1.nobbd.de-# Purpose: Query the the unofficial HackerOne disclosure timeline database+# Purpose: Query the the unofficial HackerOne disclosure timeline database# to see if our target appears.## Author: Dhiraj Mishra <[email protected]>@@ -38,7 +38,7 @@ class sfp_h1nobbdde(SpiderFootPlugin):for opt in list(userOpts.keys()):self.opts[opt] = userOpts[opt]-+def watchedEvents(self):return ["DOMAIN_NAME"]diff --git a/modules/sfp_haveibeenpwned.py b/modules/sfp_haveibeenpwned.pyindex d1bfce6c..b4e998b1 100644--- a/modules/sfp_haveibeenpwned.py+++ b/modules/sfp_haveibeenpwned.py@@ -18,7 +18,7 @@ class sfp_haveibeenpwned(SpiderFootPlugin):# Default options- opts = {+ opts = {"api_key": ""}@@ -65,11 +65,11 @@ class sfp_haveibeenpwned(SpiderFootPlugin):if self.opts['api_key']:hdrs['hibp-api-key'] = self.opts['api_key']-+while retry < 2:# https://haveibeenpwned.com/API/v2#RateLimitingtime.sleep(1.5)- res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],+ res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],useragent="SpiderFoot", headers=hdrs)if res['code'] == "200":@@ -107,7 +107,7 @@ class sfp_haveibeenpwned(SpiderFootPlugin):self.sf.debug("Received event, " + eventName + ", from " + srcModuleName)- # Don't look up stuff twice+ # Don't look up stuff twiceif eventData in self.results:self.sf.debug("Skipping " + eventData + " as already mapped.")return Nonediff --git a/modules/sfp_hosting.py b/modules/sfp_hosting.pyindex 0d09d829..489ce315 100644--- a/modules/sfp_hosting.py+++ b/modules/sfp_hosting.py@@ -65,7 +65,7 @@ class sfp_hosting(SpiderFootPlugin):if "," not in line:continuetry:- [start,end,title,url] = line.split(",")+ [start, end, title, url] = line.split(",")except BaseException as e:continuediff --git a/modules/sfp_hunter.py b/modules/sfp_hunter.pyindex b8fa126e..4b1bb73d 100644--- a/modules/sfp_hunter.py+++ b/modules/sfp_hunter.py@@ -17,7 +17,7 @@ class sfp_hunter(SpiderFootPlugin):# Default options- opts = {+ opts = {"api_key": ""}@@ -57,7 +57,7 @@ class sfp_hunter(SpiderFootPlugin):url = "https://api.hunter.io/v2/domain-search?domain=" + t + "&api_key=" + self.opts['api_key'] + \"&offset=" + str(offset) + "&limit=" + str(limit)- res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],+ res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],useragent="SpiderFoot")if res['code'] == "404":@@ -85,7 +85,7 @@ class sfp_hunter(SpiderFootPlugin):self.sf.debug("Received event, " + eventName + ", from " + srcModuleName)- # Don't look up stuff twice+ # Don't look up stuff twiceif eventData in self.results:self.sf.debug("Skipping " + eventData + " as already mapped.")return None@@ -121,7 +121,7 @@ class sfp_hunter(SpiderFootPlugin):if 'first_name' in email and 'last_name' in email:if email['first_name'] != None and email['last_name'] != None:n = email['first_name'] + " " + email['last_name']- e = SpiderFootEvent("RAW_RIR_DATA", "Possible full name: " + n,+ e = SpiderFootEvent("RAW_RIR_DATA", "Possible full name: " + n,self.__name__, event)self.notifyListeners(e)diff --git a/modules/sfp_iknowwhatyoudownload.py b/modules/sfp_iknowwhatyoudownload.pyindex c474b6b2..8cbc853b 100644--- a/modules/sfp_iknowwhatyoudownload.py+++ b/modules/sfp_iknowwhatyoudownload.py@@ -17,7 +17,7 @@ class sfp_iknowwhatyoudownload(SpiderFootPlugin):# Default options- opts = {+ opts = {"daysback": 30,"api_key": ""}@@ -65,7 +65,7 @@ class sfp_iknowwhatyoudownload(SpiderFootPlugin):url = base + qry + "&days=" + str(self.opts['daysback'])url += "&key=" + self.opts['api_key']- res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],+ res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],useragent="SpiderFoot")if res['code'] in ["403", "500"]:@@ -83,7 +83,7 @@ class sfp_iknowwhatyoudownload(SpiderFootPlugin):self.errorState = Trueself.sf.error("The number of days you have configured is not accepted. If you have the demo key, try 30 days or less.", False)return None-+if 'contents' in ret:if len(ret['contents']) > 0:retdata = "<SFURL>https://iknowwhatyoudownload.com/en/peer/?ip=" + qry + "</SFURL>\n"@@ -93,7 +93,7 @@ class sfp_iknowwhatyoudownload(SpiderFootPlugin):else:return Noneelse:- return None+ return Nonereturn retdata@@ -113,7 +113,7 @@ class sfp_iknowwhatyoudownload(SpiderFootPlugin):self.errorState = Truereturn None- # Don't look up stuff twice+ # Don't look up stuff twiceif eventData in self.results:self.sf.debug("Skipping " + eventData + " as already mapped.")return Nonediff --git a/modules/sfp_instagram.py b/modules/sfp_instagram.pyindex 4e3fbe95..a4d4e7a5 100644--- a/modules/sfp_instagram.py+++ b/modules/sfp_instagram.py@@ -18,7 +18,7 @@ class sfp_instagram(SpiderFootPlugin):"""Instagram:Footprint,Investigate,Passive:Social Media::Gather information from Instagram profiles."""# Default options- opts = {+ opts = {}# Option descriptions@@ -87,7 +87,7 @@ class sfp_instagram(SpiderFootPlugin):# Retrieve profileres = self.sf.fetchUrl(url,- timeout=self.opts['_fetchtimeout'],+ timeout=self.opts['_fetchtimeout'],useragent=self.opts['_useragent'])if res['content'] is None:diff --git a/modules/sfp_intelx.py b/modules/sfp_intelx.pyindex c3519e85..6521e50e 100644--- a/modules/sfp_intelx.py+++ b/modules/sfp_intelx.py@@ -91,10 +91,10 @@ class sfp_intelx(SpiderFootPlugin):"sort": 4,"media": 0,"terminate": []- }+ }url = 'https://' + self.opts['base_url'] + '/intelligent/search'- res = self.sf.fetchUrl(url, postData=json.dumps(payload),+ res = self.sf.fetchUrl(url, postData=json.dumps(payload),headers=headers, timeout=self.opts['_fetchtimeout'])if res['content'] is None:@@ -138,7 +138,7 @@ class sfp_intelx(SpiderFootPlugin):return rettime.sleep(1)-+self.sf.debug("No results found.")return None@@ -180,7 +180,7 @@ class sfp_intelx(SpiderFootPlugin):for rec in info.get("records", dict()):try:last_seen = int(datetime.datetime.strptime(rec['added'].split(".")[0], '%Y-%m-%dT%H:%M:%S').strftime('%s')) * 1000- if last_seen < agelimit:+ if last_seen < agelimit:self.sf.debug("Record found but too old, skipping.")continue@@ -199,7 +199,7 @@ class sfp_intelx(SpiderFootPlugin):except BaseException as e:self.sf.error("Error processing content from IntelX: " + str(e), False)continue-+# Notify other modules of what you've founde = SpiderFootEvent(evt, val, self.__name__, event)self.notifyListeners(e)diff --git a/modules/sfp_ipinfo.py b/modules/sfp_ipinfo.pyindex 189aab5b..430a7d07 100644--- a/modules/sfp_ipinfo.py+++ b/modules/sfp_ipinfo.py@@ -19,8 +19,8 @@ class sfp_ipinfo(SpiderFootPlugin):"""IPInfo.io:Footprint,Investigate,Passive:Real World:apikey:Identifies the physical location of IP addresses identified using ipinfo.io."""# Default options- opts = {- "api_key": ""+ opts = {+ "api_key": ""}optdescs = {"api_key": "Ipinfo.io access token."diff --git a/modules/sfp_isc.py b/modules/sfp_isc.pyindex e5cee0ed..4d93ea3f 100644--- a/modules/sfp_isc.py+++ b/modules/sfp_isc.py@@ -130,7 +130,7 @@ class sfp_isc(SpiderFootPlugin):# If we're looking at netblocksif targetType == "netblock":iplist = list()- # Get the regex, replace {0} with an IP address matcher to+ # Get the regex, replace {0} with an IP address matcher to# build a list of IP.# Cycle through each IP and check if it's in the netblock.if 'regex' in malchecks[check]:diff --git a/modules/sfp_junkfiles.py b/modules/sfp_junkfiles.pyindex 1703bf72..c22cf246 100644--- a/modules/sfp_junkfiles.py+++ b/modules/sfp_junkfiles.py@@ -19,7 +19,7 @@ class sfp_junkfiles(SpiderFootPlugin):# Default optionsopts = {'fileexts': ['tmp', 'bak', 'old'],- 'urlextstry': ['asp', 'php', 'jsp',],+ 'urlextstry': ['asp', 'php', 'jsp', ],'files': ["old", "passwd", ".htaccess", ".htpasswd","Thumbs.db", "backup"],'dirs': ['zip', 'tar.gz', 'tgz', 'tar'],@@ -97,7 +97,7 @@ class sfp_junkfiles(SpiderFootPlugin):if self.opts['skipfake'] and host in self.skiphosts:self.sf.debug("Skipping " + host + " because it doesn't return 404s.")return None-+if "." + ext + "?" in eventData or "." + ext + "#" in eventData or \eventData.endswith("." + ext):bits = eventData.split("?")diff --git a/modules/sfp_malwaredomainlist.py b/modules/sfp_malwaredomainlist.pyindex 148ce8f7..09aa7e9f 100644--- a/modules/sfp_malwaredomainlist.py+++ b/modules/sfp_malwaredomainlist.py@@ -38,7 +38,7 @@ class sfp_malwaredomainlist(SpiderFootPlugin):opts = {'malwaredomainlistdomain': True,'malwaredomainlistip': True,- 'checkaffiliates': True,+ 'checkaffiliates': True,'checkcohosts': True,'cacheperiod': 18,'checknetblocks': True,@@ -148,7 +148,7 @@ class sfp_malwaredomainlist(SpiderFootPlugin):# If we're looking at netblocksif targetType == "netblock":iplist = list()- # Get the regex, replace {0} with an IP address matcher to+ # Get the regex, replace {0} with an IP address matcher to# build a list of IP.# Cycle through each IP and check if it's in the netblock.if 'regex' in malchecks[check]:diff --git a/modules/sfp_malwaredomains.py b/modules/sfp_malwaredomains.pyindex e38a7936..c64e0b65 100644--- a/modules/sfp_malwaredomains.py+++ b/modules/sfp_malwaredomains.py@@ -32,7 +32,7 @@ class sfp_malwaredomains(SpiderFootPlugin):# Default optionsopts = {'_malwaredomains': True,- 'checkaffiliates': True,+ 'checkaffiliates': True,'checkcohosts': True,'cacheperiod': 18}@@ -133,7 +133,7 @@ class sfp_malwaredomains(SpiderFootPlugin):# If we're looking at netblocksif targetType == "netblock":iplist = list()- # Get the regex, replace {0} with an IP address matcher to+ # Get the regex, replace {0} with an IP address matcher to# build a list of IP.# Cycle through each IP and check if it's in the netblock.if 'regex' in malchecks[check]:diff --git a/modules/sfp_mnemonic.py b/modules/sfp_mnemonic.pyindex 523021dd..71ffc4c3 100644--- a/modules/sfp_mnemonic.py+++ b/modules/sfp_mnemonic.py@@ -48,7 +48,7 @@ class sfp_mnemonic(SpiderFootPlugin):def setup(self, sfc, userOpts=dict()):self.sf = sfcself.results = self.tempStorage()- self.cohostcount = 0+ self.cohostcount = 0self.errorState = Falsefor opt in list(userOpts.keys()):@@ -143,8 +143,8 @@ class sfp_mnemonic(SpiderFootPlugin):max_pages = int(self.opts['max_pages'])per_page = int(self.opts['per_page'])agelimit = int(time.time() * 1000) - (86400000 * self.opts['maxage'])- cohostcount = 0- cohosts = list()+ cohostcount = 0+ cohosts = list()while position < (per_page * max_pages):if self.checkForStop():diff --git a/modules/sfp_multiproxy.py b/modules/sfp_multiproxy.pyindex c5d3a9c3..066779c8 100644--- a/modules/sfp_multiproxy.py+++ b/modules/sfp_multiproxy.py@@ -62,7 +62,7 @@ class sfp_multiproxy(SpiderFootPlugin):# * = be notified about all events.def watchedEvents(self):return ["IP_ADDRESS", "AFFILIATE_IPADDR"]-+# What events this module produces# This is to support the end user in selecting modules based on events@@ -132,7 +132,7 @@ class sfp_multiproxy(SpiderFootPlugin):# If we're looking at netblocksif targetType == "netblock":iplist = list()- # Get the regex, replace {0} with an IP address matcher to+ # Get the regex, replace {0} with an IP address matcher to# build a list of IP.# Cycle through each IP and check if it's in the netblock.if 'regex' in malchecks[check]:diff --git a/modules/sfp_myspace.py b/modules/sfp_myspace.pyindex 6b73a206..0104df76 100644--- a/modules/sfp_myspace.py+++ b/modules/sfp_myspace.py@@ -17,7 +17,7 @@ class sfp_myspace(SpiderFootPlugin):"""MySpace:Footprint,Investigate,Passive:Social Media::Gather username and location from MySpace.com profiles."""# Default options- opts = {+ opts = {}# Option descriptions@@ -58,8 +58,8 @@ class sfp_myspace(SpiderFootPlugin):# Search by email addressif eventName == "EMAILADDR":email = eventData- res = self.sf.fetchUrl("https://myspace.com/search/people?q=" + email,- timeout=self.opts['_fetchtimeout'],+ res = self.sf.fetchUrl("https://myspace.com/search/people?q=" + email,+ timeout=self.opts['_fetchtimeout'],useragent=self.opts['_useragent'])if res['content'] is None:@@ -108,7 +108,7 @@ class sfp_myspace(SpiderFootPlugin):", as not a MySpace profile")return None- res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],+ res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],useragent=self.opts['_useragent'])if res['content'] is None:@@ -122,8 +122,8 @@ class sfp_myspace(SpiderFootPlugin):location = data[0]if len(location) < 5 or len(location) > 100:- self.sf.debug("Skipping likely invalid location.")- return None+ self.sf.debug("Skipping likely invalid location.")+ return Nonee = SpiderFootEvent("GEOINFO", location, self.__name__, event)self.notifyListeners(e)diff --git a/modules/sfp_names.py b/modules/sfp_names.pyindex 76894b40..988c4fa1 100644--- a/modules/sfp_names.py+++ b/modules/sfp_names.py@@ -47,8 +47,8 @@ class sfp_names(SpiderFootPlugin):# What events is this module interested in for input# * = be notified about all events.def watchedEvents(self):- return ["TARGET_WEB_CONTENT", "EMAILADDR",- "DOMAIN_WHOIS", "NETBLOCK_WHOIS",+ return ["TARGET_WEB_CONTENT", "EMAILADDR",+ "DOMAIN_WHOIS", "NETBLOCK_WHOIS","RAW_RIR_DATA", "RAW_FILE_META_DATA"]# What events this module producesdiff --git a/modules/sfp_nothink.py b/modules/sfp_nothink.pyindex de0a0976..ae38ddb5 100644--- a/modules/sfp_nothink.py+++ b/modules/sfp_nothink.py@@ -155,7 +155,7 @@ class sfp_nothink(SpiderFootPlugin):# If we're looking at netblocksif targetType == "netblock":iplist = list()- # Get the regex, replace {0} with an IP address matcher to+ # Get the regex, replace {0} with an IP address matcher to# build a list of IP.# Cycle through each IP and check if it's in the netblock.if 'regex' in malchecks[check]:diff --git a/modules/sfp_onioncity.py b/modules/sfp_onioncity.pyindex 2cfedeec..8aac72b0 100644--- a/modules/sfp_onioncity.py+++ b/modules/sfp_onioncity.py@@ -1,7 +1,7 @@# -*- coding: utf-8 -*-# -------------------------------------------------------------------------------# Name: sfp_onioncity-# Purpose: Searches the Tor search engine 'Onion City' for content related+# Purpose: Searches the Tor search engine 'Onion City' for content related# to the domain in question.## Author: Steve Micallef <[email protected]>@@ -20,8 +20,8 @@ class sfp_onioncity(SpiderFootPlugin):# Default optionsopts = {- "api_key": "",- "cse_id": "013611106330597893267:tfgl3wxdtbp",+ "api_key": "",+ "cse_id": "013611106330597893267:tfgl3wxdtbp",'fetchlinks': True,'fullnames': True}@@ -54,7 +54,7 @@ class sfp_onioncity(SpiderFootPlugin):# This is to support the end user in selecting modules based on events# produced.def producedEvents(self):- return ["DARKNET_MENTION_URL", "DARKNET_MENTION_CONTENT",+ return ["DARKNET_MENTION_URL", "DARKNET_MENTION_CONTENT","RAW_RIR_DATA"]def handleEvent(self, event):@@ -153,7 +153,7 @@ class sfp_onioncity(SpiderFootPlugin):continuedata = res['content'][startIndex:endIndex]- evt = SpiderFootEvent("DARKNET_MENTION_CONTENT", "..." + data + "...",+ evt = SpiderFootEvent("DARKNET_MENTION_CONTENT", "..." + data + "...",self.__name__, evt)self.notifyListeners(evt)else:diff --git a/modules/sfp_onionsearchengine.py b/modules/sfp_onionsearchengine.pyindex 1be1bef8..c892d5c9 100644--- a/modules/sfp_onionsearchengine.py+++ b/modules/sfp_onionsearchengine.py@@ -1,7 +1,7 @@# -*- coding: utf-8 -*-# -------------------------------------------------------------------------------# Name: sfp_onionsearchengine-# Purpose: Searches the Tor search engine onionsearchengine.com for content+# Purpose: Searches the Tor search engine onionsearchengine.com for content# related to the domain in question.## Author: Steve Micallef <[email protected]>@@ -85,7 +85,7 @@ class sfp_onionsearchengine(SpiderFootPlugin):# Sites hosted on the domaindata = self.sf.fetchUrl('https://onionsearchengine.com/search.php?' + urllib.parse.urlencode(params),- useragent=self.opts['_useragent'],+ useragent=self.opts['_useragent'],timeout=self.opts['timeout'])if data is None or not data.get('content'):@@ -108,7 +108,7 @@ class sfp_onionsearchengine(SpiderFootPlugin):self.__name__, event)self.notifyListeners(evt)- links = re.findall("url\.php\?u=(.[^\"\']+)[\"\']",+ links = re.findall("url\.php\?u=(.[^\"\']+)[\"\']",data['content'], re.IGNORECASE | re.DOTALL)for link in links:diff --git a/modules/sfp_openbugbounty.py b/modules/sfp_openbugbounty.pyindex ccf6b0e2..e15774ce 100644--- a/modules/sfp_openbugbounty.py+++ b/modules/sfp_openbugbounty.py@@ -82,7 +82,7 @@ class sfp_openbugbounty(SpiderFootPlugin):self.sf.debug("Received event, " + eventName + ", from " + srcModuleName)- # Don't look up stuff twice+ # Don't look up stuff twiceif eventData in self.results:self.sf.debug("Skipping " + eventData + " as already mapped.")return Nonediff --git a/modules/sfp_openphish.py b/modules/sfp_openphish.pyindex 5bfdd3aa..4ec600ce 100644--- a/modules/sfp_openphish.py+++ b/modules/sfp_openphish.py@@ -33,7 +33,7 @@ class sfp_openphish(SpiderFootPlugin):# Default optionsopts = {'_openphish': True,- 'checkaffiliates': True,+ 'checkaffiliates': True,'checkcohosts': True,'cacheperiod': 18}@@ -69,7 +69,7 @@ class sfp_openphish(SpiderFootPlugin):# This is to support the end user in selecting modules based on events# produced.def producedEvents(self):- return ["MALICIOUS_INTERNET_NAME", "MALICIOUS_AFFILIATE_INTERNET_NAME",+ return ["MALICIOUS_INTERNET_NAME", "MALICIOUS_AFFILIATE_INTERNET_NAME","MALICIOUS_COHOST"]# Check the regexps to see whether the content indicates maliciousness@@ -134,7 +134,7 @@ class sfp_openphish(SpiderFootPlugin):# If we're looking at netblocksif targetType == "netblock":iplist = list()- # Get the regex, replace {0} with an IP address matcher to+ # Get the regex, replace {0} with an IP address matcher to# build a list of IP.# Cycle through each IP and check if it's in the netblock.if 'regex' in malchecks[check]:diff --git a/modules/sfp_pastebin.py b/modules/sfp_pastebin.pyindex a7778519..1c50b090 100644--- a/modules/sfp_pastebin.py+++ b/modules/sfp_pastebin.py@@ -1,7 +1,7 @@# -*- coding: utf-8 -*-# -------------------------------------------------------------------------------# Name: sfp_pastebin-# Purpose: Searches Google for PasteBin content related to the domain in+# Purpose: Searches Google for PasteBin content related to the domain in# question.## Author: Steve Micallef <[email protected]> and ShellCodeNoobx@@ -22,7 +22,7 @@ class sfp_pastebin(SpiderFootPlugin):# Default optionsopts = {- "api_key": "",+ "api_key": "","cse_id": "013611106330597893267:tfgl3wxdtbp"}@@ -105,7 +105,7 @@ class sfp_pastebin(SpiderFootPlugin):relevant_links = [link for link in new_links if self.sf.urlBaseUrl(link).endswith(target)]-+for link in relevant_links:self.sf.debug("Found a link: " + link)diff --git a/modules/sfp_pgp.py b/modules/sfp_pgp.pyindex ec62c6cd..fa5c1205 100644--- a/modules/sfp_pgp.py+++ b/modules/sfp_pgp.py@@ -98,9 +98,9 @@ class sfp_pgp(SpiderFootPlugin):useragent=self.opts['_useragent'])if res['content'] is None or res['code'] == "503":- res = self.sf.fetchUrl(self.opts['keyserver_fetch2'] + eventData,- timeout=self.opts['_fetchtimeout'],- useragent=self.opts['_useragent'])+ res = self.sf.fetchUrl(self.opts['keyserver_fetch2'] + eventData,+ timeout=self.opts['_fetchtimeout'],+ useragent=self.opts['_useragent'])if res['content'] is not None and res['code'] != "503":pat = re.compile("(-----BEGIN.*END.*BLOCK-----)", re.MULTILINE | re.DOTALL)diff --git a/modules/sfp_phishtank.py b/modules/sfp_phishtank.pyindex e3ed08e9..84e19351 100644--- a/modules/sfp_phishtank.py+++ b/modules/sfp_phishtank.py@@ -33,7 +33,7 @@ class sfp_phishtank(SpiderFootPlugin):# Default optionsopts = {'_phishtank': True,- 'checkaffiliates': True,+ 'checkaffiliates': True,'checkcohosts': True,'cacheperiod': 18}@@ -69,7 +69,7 @@ class sfp_phishtank(SpiderFootPlugin):# This is to support the end user in selecting modules based on events# produced.def producedEvents(self):- return ["MALICIOUS_INTERNET_NAME", "MALICIOUS_AFFILIATE_INTERNET_NAME",+ return ["MALICIOUS_INTERNET_NAME", "MALICIOUS_AFFILIATE_INTERNET_NAME","MALICIOUS_COHOST"]# Check the regexps to see whether the content indicates maliciousness@@ -134,7 +134,7 @@ class sfp_phishtank(SpiderFootPlugin):# If we're looking at netblocksif targetType == "netblock":iplist = list()- # Get the regex, replace {0} with an IP address matcher to+ # Get the regex, replace {0} with an IP address matcher to# build a list of IP.# Cycle through each IP and check if it's in the netblock.if 'regex' in malchecks[check]:diff --git a/modules/sfp_phone.py b/modules/sfp_phone.pyindex c9c1a769..6fa9cbdd 100644--- a/modules/sfp_phone.py+++ b/modules/sfp_phone.py@@ -60,7 +60,7 @@ class sfp_phone(SpiderFootPlugin):if eventName in ['TARGET_WEB_CONTENT', 'DOMAIN_WHOIS', 'NETBLOCK_WHOIS']:# Make potential phone numbers more friendly to parse- content = eventData.replace('.','-')+ content = eventData.replace('.', '-')for match in phonenumbers.PhoneNumberMatcher(content, region=None):n = phonenumbers.format_number(match.number,diff --git a/modules/sfp_psbdmp.py b/modules/sfp_psbdmp.pyindex 580ac28a..f67e36bd 100644--- a/modules/sfp_psbdmp.py+++ b/modules/sfp_psbdmp.py@@ -19,7 +19,7 @@ class sfp_psbdmp(SpiderFootPlugin):# Default options- opts = {+ opts = {}# Option descriptions@@ -61,7 +61,7 @@ class sfp_psbdmp(SpiderFootPlugin):else:url = "https://psbdmp.cc/api/search/domain/" + qry- res = self.sf.fetchUrl(url, timeout=15,+ res = self.sf.fetchUrl(url, timeout=15,useragent="SpiderFoot")if res['code'] == "403" or res['content'] is None:@@ -73,7 +73,7 @@ class sfp_psbdmp(SpiderFootPlugin):except Exception as e:self.sf.error("Error processing JSON response from psbdmp.cc: " + str(e), False)return None-+ids = list()if 'count' in ret:if ret['count'] > 0:@@ -82,7 +82,7 @@ class sfp_psbdmp(SpiderFootPlugin):else:return Noneelse:- return None+ return Nonereturn ids@@ -94,7 +94,7 @@ class sfp_psbdmp(SpiderFootPlugin):self.sf.debug("Received event, " + eventName + ", from " + srcModuleName)- # Don't look up stuff twice+ # Don't look up stuff twiceif eventData in self.results:self.sf.debug("Skipping " + eventData + " as already mapped.")return None@@ -119,7 +119,7 @@ class sfp_psbdmp(SpiderFootPlugin):# Sometimes pastes search results false positivesif re.search("[^a-zA-Z\-\_0-9]" + re.escape(eventData) +"[^a-zA-Z\-\_0-9]", res['content'], re.IGNORECASE) is None:- continue+ continuetry:startIndex = res['content'].index(eventData)diff --git a/modules/sfp_pulsedive.py b/modules/sfp_pulsedive.pyindex 773c7ac3..7a3108f0 100644--- a/modules/sfp_pulsedive.py+++ b/modules/sfp_pulsedive.py@@ -66,7 +66,7 @@ class sfp_pulsedive(SpiderFootPlugin):# What events this module producesdef producedEvents(self):- return ["MALICIOUS_INTERNET_NAME", "MALICIOUS_IPADDR",+ return ["MALICIOUS_INTERNET_NAME", "MALICIOUS_IPADDR","MALICIOUS_AFFILIATE_IPADDR", "MALICIOUS_NETBLOCK",'TCP_PORT_OPEN']diff --git a/modules/sfp_quad9.py b/modules/sfp_quad9.pyindex 8b46d4d0..6b92aee5 100644--- a/modules/sfp_quad9.py+++ b/modules/sfp_quad9.py@@ -90,7 +90,7 @@ class sfp_quad9(SpiderFootPlugin):typ = "MALICIOUS_COHOST"if not found:evt = SpiderFootEvent(typ, "Blocked by Quad9 [" + eventData + "]\n" +\- "<SFURL>https://quad9.net/result/?url=" + eventData + "</SFURL>",+ "<SFURL>https://quad9.net/result/?url=" + eventData + "</SFURL>",self.__name__, parentEvent)self.notifyListeners(evt)diff --git a/modules/sfp_ripe.py b/modules/sfp_ripe.pyindex e728b498..36c52385 100644--- a/modules/sfp_ripe.py+++ b/modules/sfp_ripe.py@@ -1,7 +1,7 @@# -*- coding: utf-8 -*-# -------------------------------------------------------------------------------# Name: sfp_ripe-# Purpose: Queries Internet registryes like RIPE (incl. ARIN) to get+# Purpose: Queries Internet registryes like RIPE (incl. ARIN) to get# netblocks and other bits of info.## Author: Steve Micallef <[email protected]>@@ -191,7 +191,7 @@ class sfp_ripe(SpiderFootPlugin):return neighbours- # Determine whether there is a textual link between the target+ # Determine whether there is a textual link between the target# and the string supplied.def findName(self, string):# Simplest check to perform..diff --git a/modules/sfp_riskiq.py b/modules/sfp_riskiq.pyindex d7f6ea82..6ce7a750 100644--- a/modules/sfp_riskiq.py+++ b/modules/sfp_riskiq.py@@ -94,7 +94,7 @@ class sfp_riskiq(SpiderFootPlugin):}# Be more forgiving with the timeout as some queries for subnets can be slow- res = self.sf.fetchUrl(url , timeout=30,+ res = self.sf.fetchUrl(url, timeout=30,useragent="SpiderFoot", headers=headers,postData=post)@@ -160,7 +160,7 @@ class sfp_riskiq(SpiderFootPlugin):if res['subjectCommonName'] == eventData:continueif self.getTarget().matches(res['subjectCommonName'], includeChildren=True):- e = SpiderFootEvent("INTERNET_NAME", res['subjectCommonName'],+ e = SpiderFootEvent("INTERNET_NAME", res['subjectCommonName'],self.__name__, event)self.notifyListeners(e)if self.sf.isDomain(res['subjectCommonName'], self.opts['_internettlds']):diff --git a/modules/sfp_robtex.py b/modules/sfp_robtex.pyindex b865da0d..defac964 100644--- a/modules/sfp_robtex.py+++ b/modules/sfp_robtex.py@@ -146,7 +146,7 @@ class sfp_robtex(SpiderFootPlugin):except BaseException as e:self.sf.error("Error parsing JSON from robtex API.", False)return None-+pas = data.get('pas')if not pas:return Nonediff --git a/modules/sfp_s3bucket.py b/modules/sfp_s3bucket.pyindex 6ffb722e..5bf9fe5d 100644--- a/modules/sfp_s3bucket.py+++ b/modules/sfp_s3bucket.py@@ -165,7 +165,7 @@ class sfp_s3bucket(SpiderFootPlugin):self.notifyListeners(evt)if bucket[2] != "0":bucketname = bucket[1].replace("//", "")- evt = SpiderFootEvent("CLOUD_STORAGE_BUCKET_OPEN", bucketname + ": " + bucket[2] + " files found.",+ evt = SpiderFootEvent("CLOUD_STORAGE_BUCKET_OPEN", bucketname + ": " + bucket[2] + " files found.",self.__name__, evt)self.notifyListeners(evt)diff --git a/modules/sfp_securitytrails.py b/modules/sfp_securitytrails.pyindex 3da1e3b5..b9e0b479 100644--- a/modules/sfp_securitytrails.py+++ b/modules/sfp_securitytrails.py@@ -53,7 +53,7 @@ class sfp_securitytrails(SpiderFootPlugin):# What events is this module interested in for inputdef watchedEvents(self):- return ["IP_ADDRESS", "IPV6_ADDRESS", "DOMAIN_NAME",+ return ["IP_ADDRESS", "IPV6_ADDRESS", "DOMAIN_NAME","EMAILADDR", "NETBLOCK_OWNER"]# What events this module produces@@ -79,7 +79,7 @@ class sfp_securitytrails(SpiderFootPlugin):request = '{"filter": { "' + querytype + '": "' + qry + '" } }'headers['Content-Type'] = 'application/json'- res = self.sf.fetchUrl(url , timeout=self.opts['_fetchtimeout'],+ res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],useragent="SpiderFoot", headers=headers,postData=request)@@ -149,7 +149,7 @@ class sfp_securitytrails(SpiderFootPlugin):for dat in r['host_provider']:if dat in hosters:continue- e = SpiderFootEvent("PROVIDER_HOSTING", dat,+ e = SpiderFootEvent("PROVIDER_HOSTING", dat,self.__name__, event)self.notifyListeners(e)hosters.append(dat)@@ -203,7 +203,7 @@ class sfp_securitytrails(SpiderFootPlugin):myres.append(h.lower())else:continue- e = SpiderFootEvent("INTERNET_NAME", h + "." + domain,+ e = SpiderFootEvent("INTERNET_NAME", h + "." + domain,self.__name__, event)self.notifyListeners(e)diff --git a/modules/sfp_shodan.py b/modules/sfp_shodan.pyindex f9700a0c..8a406b44 100644--- a/modules/sfp_shodan.py+++ b/modules/sfp_shodan.py@@ -137,7 +137,7 @@ class sfp_shodan(SpiderFootPlugin):hosts = self.searchHosts(eventData)if hosts is None:return None-+evt = SpiderFootEvent("SEARCH_ENGINE_WEB_CONTENT", str(hosts), self.__name__, event)self.notifyListeners(evt)diff --git a/modules/sfp_similar.py b/modules/sfp_similar.pyindex 5e49c19e..3955a5ee 100644--- a/modules/sfp_similar.py+++ b/modules/sfp_similar.py@@ -23,8 +23,8 @@ nearchars = {'g': [ 'f', 'h' ],'h': [ 'g', 'j', 'n' ],'i': [ 'o', 'u', '1' ],- 'j': [ 'k', 'h' ,'i' ],- 'k': [ 'l' ,'j' ],+ 'j': [ 'k', 'h' , 'i' ],+ 'k': [ 'l' , 'j' ],'l': [ 'i', '1', 'k' ],'m': [ 'n' ],'n': [ 'm' ],@@ -150,7 +150,7 @@ class sfp_similar(SpiderFootPlugin):evt = SpiderFootEvent("SIMILARDOMAIN", d + tld, self.__name__, event)self.notifyListeners(evt)except BaseException as e:- continue+ continuereturn Nonediff --git a/modules/sfp_slideshare.py b/modules/sfp_slideshare.pyindex 6d6dad4b..bfa7a00b 100644--- a/modules/sfp_slideshare.py+++ b/modules/sfp_slideshare.py@@ -17,7 +17,7 @@ class sfp_slideshare(SpiderFootPlugin):"""SlideShare:Footprint,Investigate,Passive:Social Media::Gather name and location from SlideShare profiles."""# Default options- opts = {+ opts = {}# Option descriptions@@ -71,7 +71,7 @@ class sfp_slideshare(SpiderFootPlugin):", as not a SlideShare profile")return None- res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],+ res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],useragent=self.opts['_useragent'])if res['content'] is None:diff --git a/modules/sfp_spider.py b/modules/sfp_spider.pyindex 527d4b4e..a343a775 100644--- a/modules/sfp_spider.py+++ b/modules/sfp_spider.py@@ -117,7 +117,7 @@ class sfp_spider(SpiderFootPlugin):url = fetched['realurl'] # override the URL if we had a redirect# Extract links from the content- links = self.sf.parseLinks(url, fetched['content'],+ links = self.sf.parseLinks(url, fetched['content'],self.getTarget().getNames())if links is None or len(links) == 0:diff --git a/modules/sfp_spyonweb.py b/modules/sfp_spyonweb.pyindex dfeff8e7..b7d8f420 100644--- a/modules/sfp_spyonweb.py+++ b/modules/sfp_spyonweb.py@@ -49,7 +49,7 @@ class sfp_spyonweb(SpiderFootPlugin):self.sf = sfcself.__dataSource__ = "SpyOnWeb"self.results = self.tempStorage()- self.cohostcount = 0+ self.cohostcount = 0for opt in list(userOpts.keys()):self.opts[opt] = userOpts[opt]@@ -232,7 +232,7 @@ class sfp_spyonweb(SpiderFootPlugin):for r in list(data.keys()):last_seen = int(datetime.datetime.strptime(data[r], '%Y-%m-%d').strftime('%s')) * 1000- if last_seen < agelimit:+ if last_seen < agelimit:self.sf.debug("Record found too old, skipping.")continuediff --git a/modules/sfp_ssltools.py b/modules/sfp_ssltools.pyindex cab3af6f..3a5898f9 100644--- a/modules/sfp_ssltools.py+++ b/modules/sfp_ssltools.py@@ -62,7 +62,7 @@ class sfp_ssltools(SpiderFootPlugin):}headers = { 'Content-Type': 'application/x-www-form-urlencoded' }-+res = self.sf.fetchUrl('http://www.ssltools.com/api/dns',postData=urllib.parse.urlencode(params),headers=headers,@@ -93,7 +93,7 @@ class sfp_ssltools(SpiderFootPlugin):}headers = { 'Content-Type': 'application/x-www-form-urlencoded' }-+res = self.sf.fetchUrl('http://www.ssltools.com/api/scan',postData=urllib.parse.urlencode(params),headers=headers,diff --git a/modules/sfp_talosintel.py b/modules/sfp_talosintel.pyindex de91eed7..46348718 100644--- a/modules/sfp_talosintel.py+++ b/modules/sfp_talosintel.py@@ -136,7 +136,7 @@ class sfp_talosintel(SpiderFootPlugin):# If we're looking at netblocksif targetType == "netblock":iplist = list()- # Get the regex, replace {0} with an IP address matcher to+ # Get the regex, replace {0} with an IP address matcher to# build a list of IP.# Cycle through each IP and check if it's in the netblock.if 'regex' in malchecks[check]:diff --git a/modules/sfp_template.py b/modules/sfp_template.pyindex f905c187..81352805 100644--- a/modules/sfp_template.py+++ b/modules/sfp_template.py@@ -58,7 +58,7 @@ class sfp_XXX(SpiderFootPlugin):eventName = event.eventTypesrcModuleName = event.moduleeventData = event.data- # If you are processing TARGET_WEB_CONTENT from sfp_spider, this is how you+ # If you are processing TARGET_WEB_CONTENT from sfp_spider, this is how you# would get the source of that raw data (e.g. a URL.)eventSource = event.sourceEvent.datadiff --git a/modules/sfp_threatcrowd.py b/modules/sfp_threatcrowd.pyindex 01462cb3..e2a0ca9e 100644--- a/modules/sfp_threatcrowd.py+++ b/modules/sfp_threatcrowd.py@@ -75,10 +75,10 @@ class sfp_threatcrowd(SpiderFootPlugin):if self.sf.validIP(qry):url = "https://www.threatcrowd.org/searchApi/v2/ip/report/?ip=" + qry-+if "@" in qry:url = "https://www.threatcrowd.org/searchApi/v2/email/report/?email=" + qry-+if not url:url = "https://www.threatcrowd.org/searchApi/v2/domain/report/?domain=" + qrydiff --git a/modules/sfp_threatexpert.py b/modules/sfp_threatexpert.pyindex 41fd6e20..c666ab45 100644--- a/modules/sfp_threatexpert.py+++ b/modules/sfp_threatexpert.py@@ -33,7 +33,7 @@ class sfp_threatexpert(SpiderFootPlugin):# Default optionsopts = {'_threatexpert': True,- 'checkaffiliates': True,+ 'checkaffiliates': True,'checkcohosts': True}@@ -61,7 +61,7 @@ class sfp_threatexpert(SpiderFootPlugin):# What events is this module interested in for input# * = be notified about all events.def watchedEvents(self):- return ["INTERNET_NAME", "IP_ADDRESS", "AFFILIATE_INTERNET_NAME",+ return ["INTERNET_NAME", "IP_ADDRESS", "AFFILIATE_INTERNET_NAME","AFFILIATE_IPADDR", "CO_HOSTED_SITE"]# What events this module produces@@ -134,7 +134,7 @@ class sfp_threatexpert(SpiderFootPlugin):# If we're looking at netblocksif targetType == "netblock":iplist = list()- # Get the regex, replace {0} with an IP address matcher to+ # Get the regex, replace {0} with an IP address matcher to# build a list of IP.# Cycle through each IP and check if it's in the netblock.if 'regex' in malchecks[check]:diff --git a/modules/sfp_threatminer.py b/modules/sfp_threatminer.pyindex 2167988d..227443b2 100644--- a/modules/sfp_threatminer.py+++ b/modules/sfp_threatminer.py@@ -64,7 +64,7 @@ class sfp_threatminer(SpiderFootPlugin):# What events is this module interested in for inputdef watchedEvents(self):- return ["IP_ADDRESS", "DOMAIN_NAME", "NETBLOCK_OWNER",+ return ["IP_ADDRESS", "DOMAIN_NAME", "NETBLOCK_OWNER","NETBLOCK_MEMBER"]# What events this module producesdiff --git a/modules/sfp_tldsearch.py b/modules/sfp_tldsearch.pyindex dbd8e337..464d4a95 100644--- a/modules/sfp_tldsearch.py+++ b/modules/sfp_tldsearch.py@@ -68,7 +68,7 @@ class sfp_tldsearch(SpiderFootPlugin):resolver.nameservers = [self.opts['_dnsserver']]if self.opts['skipwildcards'] and self.sf.checkDnsWildcard(tld):- return None+ return Nonetry:addrs = self.sf.resolveHost(target)diff --git a/modules/sfp_torch.py b/modules/sfp_torch.pyindex 44e6765e..a06c4421 100644--- a/modules/sfp_torch.py+++ b/modules/sfp_torch.py@@ -1,7 +1,7 @@# -*- coding: utf-8 -*-# -------------------------------------------------------------------------------# Name: sfp_torch-# Purpose: Searches the Tor search engine 'TORCH' for content related+# Purpose: Searches the Tor search engine 'TORCH' for content related# to the domain in question.## Author: Steve Micallef <[email protected]>@@ -75,7 +75,7 @@ class sfp_torch(SpiderFootPlugin):return Noneelse:# Need the form ID to submit later for the search- m = re.findall("\<form method=\"get\" action=\"/(\S+)/search.cgi\"\>",+ m = re.findall("\<form method=\"get\" action=\"/(\S+)/search.cgi\"\>",formpage['content'], re.IGNORECASE | re.DOTALL)if not m:return None@@ -126,11 +126,11 @@ class sfp_torch(SpiderFootPlugin):if self.opts['fetchlinks']:res = self.sf.fetchUrl(link, timeout=self.opts['_fetchtimeout'],useragent=self.opts['_useragent'])-+if res['content'] is None:self.sf.debug("Ignoring " + link + " as no data returned")continue-+if eventData not in res['content']:self.sf.debug("Ignoring " + link + " as no mention of " + eventData)continuediff --git a/modules/sfp_torexits.py b/modules/sfp_torexits.pyindex 9e53bb30..24c2dda1 100644--- a/modules/sfp_torexits.py+++ b/modules/sfp_torexits.py@@ -33,7 +33,7 @@ class sfp_torexits(SpiderFootPlugin):# Default optionsopts = {'_torexits': True,- 'checkaffiliates': True,+ 'checkaffiliates': True,'cacheperiod': 18,'checknetblocks': True,'checksubnets': True@@ -138,7 +138,7 @@ class sfp_torexits(SpiderFootPlugin):# If we're looking at netblocksif targetType == "netblock":iplist = list()- # Get the regex, replace {0} with an IP address matcher to+ # Get the regex, replace {0} with an IP address matcher to# build a list of IP.# Cycle through each IP and check if it's in the netblock.if 'regex' in malchecks[check]:diff --git a/modules/sfp_totalhash.py b/modules/sfp_totalhash.pyindex cba08a2f..9fb3848f 100644--- a/modules/sfp_totalhash.py+++ b/modules/sfp_totalhash.py@@ -136,7 +136,7 @@ class sfp_totalhash(SpiderFootPlugin):# If we're looking at netblocksif targetType == "netblock":iplist = list()- # Get the regex, replace {0} with an IP address matcher to+ # Get the regex, replace {0} with an IP address matcher to# build a list of IP.# Cycle through each IP and check if it's in the netblock.if 'regex' in malchecks[check]:diff --git a/modules/sfp_twitter.py b/modules/sfp_twitter.pyindex 50b263bd..da1ebc73 100644--- a/modules/sfp_twitter.py+++ b/modules/sfp_twitter.py@@ -17,7 +17,7 @@ class sfp_twitter(SpiderFootPlugin):"""Twitter:Footprint,Investigate,Passive:Social Media::Gather name and location from Twitter profiles."""# Default options- opts = {+ opts = {}# Option descriptions@@ -66,7 +66,7 @@ class sfp_twitter(SpiderFootPlugin):self.sf.debug("Skipping social network profile, " + url + ", as not a Twitter profile")return None- res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],+ res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],useragent="SpiderFoot")if res['content'] is None:@@ -77,11 +77,11 @@ class sfp_twitter(SpiderFootPlugin):return None# Retrieve name- human_name = re.findall(r'<div class="fullname">([^<]+)\s*</div>',+ human_name = re.findall(r'<div class="fullname">([^<]+)\s*</div>',res['content'], re.MULTILINE)if human_name:- e = SpiderFootEvent("RAW_RIR_DATA", "Possible full name: " + human_name[0],+ e = SpiderFootEvent("RAW_RIR_DATA", "Possible full name: " + human_name[0],self.__name__, event)self.notifyListeners(e)diff --git a/modules/sfp_urlscan.py b/modules/sfp_urlscan.pyindex 8ceed67c..0a2d7047 100644--- a/modules/sfp_urlscan.py+++ b/modules/sfp_urlscan.py@@ -17,7 +17,7 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEventclass sfp_urlscan(SpiderFootPlugin):"""URLScan.io:Footprint,Investigate,Passive:Search Engines::Search URLScan.io cache for domain information."""- opts = {+ opts = {'verify': True}optdescs = {@@ -41,8 +41,8 @@ class sfp_urlscan(SpiderFootPlugin):# What events this module producesdef producedEvents(self):- return ['GEOINFO', 'LINKED_URL_INTERNAL', 'RAW_RIR_DATA',- 'DOMAIN_NAME', 'INTERNET_NAME', 'INTERNET_NAME_UNRESOLVED',+ return ['GEOINFO', 'LINKED_URL_INTERNAL', 'RAW_RIR_DATA',+ 'DOMAIN_NAME', 'INTERNET_NAME', 'INTERNET_NAME_UNRESOLVED','BGP_AS_MEMBER', 'WEBSERVER_BANNER']# https://urlscan.io/about-api/diff --git a/modules/sfp_venmo.py b/modules/sfp_venmo.pyindex 8d1c4ace..cd099685 100644--- a/modules/sfp_venmo.py+++ b/modules/sfp_venmo.py@@ -17,7 +17,7 @@ class sfp_venmo(SpiderFootPlugin):"""Venmo:Footprint,Investigate,Passive:Social Media::Gather user information from Venmo API."""# Default options- opts = {+ opts = {}# Option descriptions@@ -44,7 +44,7 @@ class sfp_venmo(SpiderFootPlugin):# Query Venmo APIdef query(self, qry):res = self.sf.fetchUrl('https://api.venmo.com/v1/users/' + qry,- timeout=self.opts['_fetchtimeout'],+ timeout=self.opts['_fetchtimeout'],useragent=self.opts['_useragent'])time.sleep(1)diff --git a/modules/sfp_viewdns.py b/modules/sfp_viewdns.pyindex 6ac0e67e..a71f921b 100644--- a/modules/sfp_viewdns.py+++ b/modules/sfp_viewdns.py@@ -78,7 +78,7 @@ class sfp_viewdns(SpiderFootPlugin):url = "https://api.viewdns.info/" + querytype + "/?apikey=" + self.opts['api_key']url += "&" + attr + "=" + qry + "&page=" + str(page) + "&output=json"- res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],+ res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],useragent="SpiderFoot")if res['code'] in [ "400", "429", "500", "403" ]:diff --git a/modules/sfp_virustotal.py b/modules/sfp_virustotal.pyindex f2b0a20c..a587dfa3 100644--- a/modules/sfp_virustotal.py+++ b/modules/sfp_virustotal.py@@ -220,7 +220,7 @@ class sfp_virustotal(SpiderFootPlugin):if s not in self.results:e = SpiderFootEvent("AFFILIATE_INTERNET_NAME", s, self.__name__, event)self.notifyListeners(e)-+if 'subdomains' in info and eventName == "INTERNET_NAME":for n in info['subdomains']:if n not in self.results:diff --git a/modules/sfp_voipbl.py b/modules/sfp_voipbl.pyindex 8f47123a..9a1661f0 100644--- a/modules/sfp_voipbl.py+++ b/modules/sfp_voipbl.py@@ -136,7 +136,7 @@ class sfp_voipbl(SpiderFootPlugin):# If we're looking at netblocksif targetType == "netblock":iplist = list()- # Get the regex, replace {0} with an IP address matcher to+ # Get the regex, replace {0} with an IP address matcher to# build a list of IP.# Cycle through each IP and check if it's in the netblock.if 'regex' in malchecks[check]:diff --git a/modules/sfp_vxvault.py b/modules/sfp_vxvault.pyindex 4f02ec1e..309bd55d 100644--- a/modules/sfp_vxvault.py+++ b/modules/sfp_vxvault.py@@ -137,7 +137,7 @@ class sfp_vxvault(SpiderFootPlugin):# If we're looking at netblocksif targetType == "netblock":iplist = list()- # Get the regex, replace {0} with an IP address matcher to+ # Get the regex, replace {0} with an IP address matcher to# build a list of IP.# Cycle through each IP and check if it's in the netblock.if 'regex' in malchecks[check]:diff --git a/modules/sfp_watchguard.py b/modules/sfp_watchguard.pyindex e8a00a4e..036d79e0 100644--- a/modules/sfp_watchguard.py+++ b/modules/sfp_watchguard.py@@ -21,7 +21,7 @@ malchecks = {'type': 'query','checks': [ 'ip' ],'url': 'http://reputationauthority.org/lookup?ip={0}',- 'badregex': ['.*>[6-9][0-9]/100 </td>.*','.*>100/100 </td>.*'],+ 'badregex': ['.*>[6-9][0-9]/100 </td>.*', '.*>100/100 </td>.*'],'goodregex': []}}@@ -129,7 +129,7 @@ class sfp_watchguard(SpiderFootPlugin):# If we're looking at netblocksif targetType == "netblock":iplist = list()- # Get the regex, replace {0} with an IP address matcher to+ # Get the regex, replace {0} with an IP address matcher to# build a list of IP.# Cycle through each IP and check if it's in the netblock.if 'regex' in malchecks[check]:diff --git a/modules/sfp_whoisology.py b/modules/sfp_whoisology.pyindex bb0caef3..34e13db2 100644--- a/modules/sfp_whoisology.py+++ b/modules/sfp_whoisology.py@@ -57,7 +57,7 @@ class sfp_whoisology(SpiderFootPlugin):url = "https://whoisology.com/api?auth=" + self.opts['api_key'] + "&request=flat"url += "&field=" + querytype + "&value=" + qry + "&level=Registrant|Admin|Tec|Billing|Other"- res = self.sf.fetchUrl(url , timeout=self.opts['_fetchtimeout'],+ res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],useragent="SpiderFoot")if res['code'] in [ "400", "429", "500", "403" ]:diff --git a/modules/sfp_whoxy.py b/modules/sfp_whoxy.pyindex a2889de6..a49b7059 100644--- a/modules/sfp_whoxy.py+++ b/modules/sfp_whoxy.py@@ -57,7 +57,7 @@ class sfp_whoxy(SpiderFootPlugin):url = "https://api.whoxy.com/?key=" + self.opts['api_key'] + "&reverse=whois"url += "&" + querytype + "=" + qry + "&page=" + str(page)- res = self.sf.fetchUrl(url , timeout=self.opts['_fetchtimeout'],+ res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],useragent="SpiderFoot")if res['code'] in [ "400", "429", "500", "403" ]:diff --git a/modules/sfp_wigle.py b/modules/sfp_wigle.pyindex b717567d..1f3f332a 100644--- a/modules/sfp_wigle.py+++ b/modules/sfp_wigle.py@@ -19,7 +19,7 @@ class sfp_wigle(SpiderFootPlugin):# Default options- opts = {+ opts = {"api_key_encoded": "","days_limit": "365","variance": "0.01"@@ -30,7 +30,7 @@ class sfp_wigle(SpiderFootPlugin):"api_key_encoded": "Wigle.net base64-encoded API name/token pair.","days_limit": "Maximum age of data to be considered valid.","variance": "How tightly to bound queries against the latitude/longitude box extracted from idenified addresses. This value must be between 0.001 and 0.2."-+}# Be sure to completely clear any class variables in setup()@@ -61,12 +61,12 @@ class sfp_wigle(SpiderFootPlugin):def getcoords(self, qry):url = "https://api.wigle.net/api/v2/network/geocode?" + \urllib.parse.urlencode({'addresscode': qry.encode('utf-8', errors='replace')})- hdrs = {+ hdrs = {"Accept": "application/json","Authorization": "Basic " + self.opts['api_key_encoded']}- res = self.sf.fetchUrl(url, timeout=30,+ res = self.sf.fetchUrl(url, timeout=30,useragent="SpiderFoot", headers=hdrs)if res['code'] == "404" or not res['content']:return None@@ -137,7 +137,7 @@ class sfp_wigle(SpiderFootPlugin):self.sf.debug("Received event, " + eventName + ", from " + srcModuleName)- # Don't look up stuff twice+ # Don't look up stuff twiceif eventData in self.results:self.sf.debug("Skipping " + eventData + " as already mapped.")return Nonediff --git a/modules/sfp_wikileaks.py b/modules/sfp_wikileaks.pyindex 1d8baa00..c7bfe77c 100644--- a/modules/sfp_wikileaks.py+++ b/modules/sfp_wikileaks.py@@ -115,7 +115,7 @@ class sfp_wikileaks(SpiderFootPlugin):self.sf.debug("Found a link: " + link)if self.checkForStop():return None-+# Wikileaks leak links will have a nested folder structure linkif link.count('/') >= 4:if not link.endswith(".js") and not link.endswith(".css"):@@ -124,7 +124,7 @@ class sfp_wikileaks(SpiderFootPlugin):valid = Trueif valid:- evt = SpiderFootEvent("SEARCH_ENGINE_WEB_CONTENT", res['content'],+ evt = SpiderFootEvent("SEARCH_ENGINE_WEB_CONTENT", res['content'],self.__name__, event)self.notifyListeners(evt)diff --git a/modules/sfp_wikipediaedits.py b/modules/sfp_wikipediaedits.pyindex d10db883..4dcd204f 100644--- a/modules/sfp_wikipediaedits.py+++ b/modules/sfp_wikipediaedits.py@@ -20,7 +20,7 @@ class sfp_wikipediaedits(SpiderFootPlugin):# Default options- opts = {+ opts = {"days_limit": "365"}@@ -60,7 +60,7 @@ class sfp_wikipediaedits(SpiderFootPlugin):y = dt.strftime("%Y")m = dt.strftime("%m")url += "&year=" + y + "&month=" + m- res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],+ res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],useragent="SpiderFoot")if res['code'] in [ "404", "403", "500" ]:return None@@ -91,7 +91,7 @@ class sfp_wikipediaedits(SpiderFootPlugin):self.sf.debug("Received event, " + eventName + ", from " + srcModuleName)- # Don't look up stuff twice+ # Don't look up stuff twiceif eventData in self.results:self.sf.debug("Skipping " + eventData + " as already mapped.")return Nonediff --git a/modules/sfp_xforce.py b/modules/sfp_xforce.pyindex b5ba5d35..79d4233c 100644--- a/modules/sfp_xforce.py+++ b/modules/sfp_xforce.py@@ -98,7 +98,7 @@ class sfp_xforce(SpiderFootPlugin):'Authorization': "Basic " + token.decode('utf-8')}url = xforce_url + "/" + querytype + "/" + qry- res = self.sf.fetchUrl(url , timeout=self.opts['_fetchtimeout'], useragent="SpiderFoot", headers=headers)+ res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'], useragent="SpiderFoot", headers=headers)if res['code'] in [ "400", "401", "402", "403" ]:self.sf.error("XForce API key seems to have been rejected or you have exceeded usage limits for the month.", False)diff --git a/sfcli.py b/sfcli.pyindex 202b1ad5..944d7bde 100755--- a/sfcli.py+++ b/sfcli.py@@ -331,10 +331,10 @@ class SpiderFootCli(cmd.Cmd):self.ddprint("Fetching: " + url)self.ddprint("Posting: " + str(post))if not post:- r = requests.get(url,+ r = requests.get(url,headers = headers,auth = requests.auth.HTTPDigestAuth(- self.ownopts['cli.username'],+ self.ownopts['cli.username'],self.ownopts['cli.password']))@@ -366,7 +366,7 @@ class SpiderFootCli(cmd.Cmd):# sf> scans "blahblah test" | top 10 | grep foo -># [[ 'blahblah test' ], [[ 'top', '10' ], [ 'grep', 'foo']]]def myparseline(self, cmdline, replace=True):- ret = [list(),list()]+ ret = [list(), list()]s = shlex.split(cmdline)for c in s:if c == '|':@@ -432,7 +432,7 @@ class SpiderFootCli(cmd.Cmd):if total:self.dprint("Total records: " + str(totalrec))return-+for pc in c[1]:newout = ""if len(pc) == 0:@@ -460,7 +460,7 @@ class SpiderFootCli(cmd.Cmd):self.edprint("Invalid syntax.")returnnewout = "\n".join(out.split("\n")[0:int(pipeargs)])-+if pipecmd == "last":if not pipeargs.isdigit():self.edprint("Invalid syntax.")@@ -603,7 +603,7 @@ class SpiderFootCli(cmd.Cmd):if len(j) == 0:self.dprint("No scans exist.")return-+c = self.myparseline(line)titles = dict()if "-x" in c[0]:@@ -663,13 +663,13 @@ class SpiderFootCli(cmd.Cmd):else:titles={"10": "Type",- "1": "Data"+ "1": "Data"}if "-x" in c[0]:titles["0"] = "Last Seen"titles["3"] = "Module"titles["2"] = "Source Data"- d = d.replace("</SFURL>", "").replace("<SFURL>","")+ d = d.replace("</SFURL>", "").replace("<SFURL>", "")self.send_output(d, line, titles=titles)# Export data from a scan.@@ -730,7 +730,7 @@ class SpiderFootCli(cmd.Cmd):if len(c[0]) < 1:self.edprint("Invalid syntax.")return- sid = c[0][0]+ sid = c[0][0]limit = Noneif "-l" in c[0]:limit = c[0][c[0].index("-l")+1]@@ -779,7 +779,7 @@ class SpiderFootCli(cmd.Cmd):self.edprint(r[1] + ": " + r[3])else:self.dprint(r[1] + ": " + r[3])-+while True:d = self.request(self.ownopts['cli.server_baseurl'] + "/scanlog",post={'id': sid, 'reverse': '1', 'rowId': rowid})@@ -1084,8 +1084,8 @@ class SpiderFootCli(cmd.Cmd):self.dprint(k + " = " + str(serverconfig[k]), plain=True)if len(output) > 0:- self.send_output(json.dumps(output), line,- { 'opt': "Option", 'val': "Value"},+ self.send_output(json.dumps(output), line,+ { 'opt': "Option", 'val': "Value"},total=False)return@@ -1125,17 +1125,17 @@ class SpiderFootCli(cmd.Cmd):else:confdata[optstr] = "1"if type(serverconfig[k]) == list:- # If set by the user, it must already be a+ # If set by the user, it must already be a# string, not a listconfdata[optstr] = ','.join(serverconfig[k])if type(serverconfig[k]) == int:confdata[optstr] = str(serverconfig[k])if type(serverconfig[k]) == str:confdata[optstr] = serverconfig[k]-+self.ddprint(str(confdata))d = self.request(self.ownopts['cli.server_baseurl'] + "/savesettingsraw",- post={'token': token,'allopts': json.dumps(confdata)})+ post={'token': token, 'allopts': json.dumps(confdata)})j = list()if not d:self.edprint("Unable to set SpiderFoot server-side config.")@@ -1258,10 +1258,10 @@ if __name__ == "__main__":/ \\ |_> > / /_/ \\ ___/| | \\/ \\( <_> | <_> ) | \n\/_______ / __/|__\\____ |\\___ >__| \\___ / \\____/ \\____/|__| \n\\\/|__| \\/ \\/ \\/ \n\- Open Source Intelligence Automation.", plain=True,+ Open Source Intelligence Automation.", plain=True,color=bcolors.GREYBLUE)s.dprint("\- by Steve Micallef | @spiderfoot\n", plain=True,+ by Steve Micallef | @spiderfoot\n", plain=True,color=bcolors.GREYBLUE_DARK)s.dprint("Version " + s.version + ".")if args.b:@@ -1269,7 +1269,7 @@ if __name__ == "__main__":# Test connectivity to the servers.do_ping("")-+if not args.n:try:f = codecs.open(s.ownopts['cli.history_file'], "r", encoding="utf-8")diff --git a/sfdb.py b/sfdb.pyindex f0afc14e..35421672 100644--- a/sfdb.py+++ b/sfdb.py@@ -517,7 +517,7 @@ class SpiderFootDb:type, message, rowid FROM tbl_scan_log WHERE scan_instance_id = ?"if fromRowId:qry += " and rowid > ?"-+qry += " ORDER BY generated "if reverse:qry += "ASC"@@ -722,7 +722,7 @@ class SpiderFootDb:# List of all previously run scansdef scanInstanceList(self):# SQLite doesn't support OUTER JOINs, so we need a work-around that- # does a UNION of scans with results and scans without results to+ # does a UNION of scans with results and scans without results to# get a complete listing.qry = "SELECT i.guid, i.name, i.seed_target, ROUND(i.created/1000), \ROUND(i.started)/1000 as started, ROUND(i.ended)/1000, i.status, COUNT(r.type) \@@ -803,7 +803,7 @@ class SpiderFootDb:except sqlite3.Error as e:self.sf.error("SQL error encountered when getting child element IDs: " + e.args[0])- # Get the full set of upstream IDs which are parents to the+ # Get the full set of upstream IDs which are parents to the# supplied set of IDs.# Data has to be in the format of output from scanElementSourcesDirect# and produce output in the same format.@@ -856,7 +856,7 @@ class SpiderFootDb:datamap[parentId] = rowreturn [datamap, pc]- # Get the full set of downstream IDs which are children of the+ # Get the full set of downstream IDs which are children of the# supplied set of IDs# NOTE FOR NOW THE BEHAVIOR IS NOT THE SAME AS THE scanElementParent*# FUNCTIONS - THIS ONLY RETURNS IDS!!diff --git a/sflib.py b/sflib.pyindex 18fbed45..a15ea8f6 100644--- a/sflib.py+++ b/sflib.py@@ -293,11 +293,11 @@ class SpiderFoot:# Generate an globally unique ID for this scandef genScanInstanceGUID(self, scanName):- # hashStr = hashlib.sha256(- # scanName +- # str(time.time() * 1000) +- # str(random.SystemRandom().randint(100000, 999999))- # ).hexdigest()+ # hashStr = hashlib.sha256(+ # scanName ++ # str(time.time() * 1000) ++ # str(random.SystemRandom().randint(100000, 999999))+ # ).hexdigest()return str(uuid.uuid4()).split("-")[0].upper()def _dblog(self, level, message, component=None):@@ -826,9 +826,9 @@ class SpiderFoot:# Verify input is OK to executedef sanitiseInput(self, cmd):- chars = ['a','b','c','d','e','f','g','h','i','j','k','l','m',- 'n','o','p','q','r','s','t','u','v','w','x','y','z',- '0','1','2','3','4','5','6','7','8','9','-','.']+ chars = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',+ 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',+ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-', '.']for c in cmd:if c.lower() not in chars:return False@@ -1401,9 +1401,9 @@ class SpiderFoot:if result['realurl'] != url:if not noLog:- self.info("Fetching (HEAD only): " + self.removeUrlCreds(url) + \- " [user-agent: " + header['User-Agent'] + "] [timeout: " + \- str(timeout) + "]")+ self.info("Fetching (HEAD only): " + self.removeUrlCreds(url) + \+ " [user-agent: " + header['User-Agent'] + "] [timeout: " + \+ str(timeout) + "]")hdr = self.getSession().head(result['realurl'], headers=header, proxies=proxies,verify=verify, timeout=timeout)@@ -1924,7 +1924,7 @@ class SpiderFootTarget(object):if value is None or value == "":return False- # We can't really say anything about names, username or phone numbers,+ # We can't really say anything about names, username or phone numbers,# so everything matchesif self.targetType in ["HUMAN_NAME", "PHONE_NUMBER", "USERNAME" ]:return Truediff --git a/sfscan.py b/sfscan.pyindex 84e2f367..d93ce7dc 100644--- a/sfscan.py+++ b/sfscan.py@@ -232,7 +232,7 @@ class SpiderFootScanner(threading.Thread):firstEvent = SpiderFootEvent(self.ts.targetType, self.ts.targetValue,"SpiderFoot UI", rootEvent)psMod.notifyListeners(firstEvent)-+# Special case.. check if an INTERNET_NAME is also a domainif self.ts.targetType == 'INTERNET_NAME':if self.ts.sf.isDomain(self.ts.targetValue, self.ts.config['_internettlds']):@@ -244,7 +244,7 @@ class SpiderFootScanner(threading.Thread):# waiting for inputs, and process them until my status is set to# FINISHED.- # Check in case the user requested to stop the scan between modules+ # Check in case the user requested to stop the scan between modules# initializingfor module in list(self.ts.moduleInstances.values()):if module.checkForStop():diff --git a/sfwebui.py b/sfwebui.pyindex 668f3631..20364f45 100644--- a/sfwebui.py+++ b/sfwebui.py@@ -126,7 +126,7 @@ class SpiderFootWebUi:escapeddata = cgi.escape(row[1])escapedsrc = cgi.escape(row[2])retdata.append([lastseen, escapeddata, escapedsrc,- row[3], row[5], row[6], row[7], row[8], row[10],+ row[3], row[5], row[6], row[7], row[8], row[10],row[11], row[4], row[13], row[14]])return retdata@@ -172,7 +172,7 @@ class SpiderFootWebUi:continuelastseen = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(row[0]))datafield = str(row[1]).replace("<SFURL>", "").replace("</SFURL>", "")- parser.writerow([scaninfo[row[12]][0], lastseen, str(row[4]), str(row[3]),+ parser.writerow([scaninfo[row[12]][0], lastseen, str(row[4]), str(row[3]),str(row[2]), row[13], datafield])cherrypy.response.headers['Content-Disposition'] = "attachment; filename=SpiderFoot.csv"cherrypy.response.headers['Content-Type'] = "application/csv"@@ -207,34 +207,34 @@ class SpiderFootWebUi:scaninfo = list()for id in ids.split(','):- scan = dbh.scanInstanceGet(id)-- if scan is None:- continue-- scan_name = scan[0]-- for row in dbh.scanResultEvent(id):- lastseen = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(row[0]))- event_data = str(row[1]).replace("<SFURL>", "").replace("</SFURL>", "")- source_data = str(row[2])- source_module = str(row[3])- event_type = row[4]- false_positive = row[13]-- if event_type == "ROOT":- continue-- scaninfo.append({- "data": event_data,- "event_type": event_type,- "module": source_module,- "source_data": source_data,- "false_positive": false_positive,- "last_seen": lastseen,- "scan_name": scan_name,- "scan_target": scan[1]- })+ scan = dbh.scanInstanceGet(id)++ if scan is None:+ continue++ scan_name = scan[0]++ for row in dbh.scanResultEvent(id):+ lastseen = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(row[0]))+ event_data = str(row[1]).replace("<SFURL>", "").replace("</SFURL>", "")+ source_data = str(row[2])+ source_module = str(row[3])+ event_type = row[4]+ false_positive = row[13]++ if event_type == "ROOT":+ continue++ scaninfo.append({+ "data": event_data,+ "event_type": event_type,+ "module": source_module,+ "source_data": source_data,+ "false_positive": false_positive,+ "last_seen": lastseen,+ "scan_name": scan_name,+ "scan_target": scan[1]+ })cherrypy.response.headers['Content-Disposition'] = "attachment; filename=SpiderFoot.json"cherrypy.response.headers['Content-Type'] = "application/json; charset=utf-8"@@ -257,7 +257,7 @@ class SpiderFootWebUi:return sf.buildGraphGexf([root], "SpiderFoot Export", data)else:return sf.buildGraphJson([root], data)-+scanviz.exposed = True# Export entities results from multiple scans in GEXF format@@ -420,7 +420,7 @@ class SpiderFootWebUi:newscan.exposed = True-+# Clone an existing scan (pre-selected options in the newscan page)def clonescan(self, id):sf = SpiderFoot(self.config)@@ -445,7 +445,7 @@ class SpiderFootWebUi:templ = Template(filename='dyn/newscan.tmpl', lookup=self.lookup)return templ.render(pageid='NEWSCAN', types=types, docroot=self.docroot,modules=self.config['__modules__'], selectedmods=modlist,- scanname=str(scanname),+ scanname=str(scanname),scantarget=str(scantarget))clonescan.exposed = True@@ -539,7 +539,7 @@ class SpiderFootWebUi:return json.dumps(["SUCCESS", ""])else:templ = Template(filename='dyn/scandelete.tmpl', lookup=self.lookup)- return templ.render(id=id, name=str(res[0]),+ return templ.render(id=id, name=str(res[0]),names=list(), ids=list(),pageid="SCANLIST", docroot=self.docroot)@@ -565,7 +565,7 @@ class SpiderFootWebUi:raise cherrypy.HTTPRedirect("/")else:templ = Template(filename='dyn/scandelete.tmpl', lookup=self.lookup)- return templ.render(id=None, name=None, ids=ids.split(','), names=names,+ return templ.render(id=None, name=None, ids=ids.split(','), names=names,pageid="SCANLIST", docroot=self.docroot)scandeletemulti.exposed = True@@ -676,7 +676,7 @@ class SpiderFootWebUi:data = dbh.scanElementSourcesDirect(id, ids)for row in data:if str(row[14]) == "1":- return json.dumps(["WARNING",+ return json.dumps(["WARNING","You cannot unset an element as False Positive " + \"if a parent element is still False Positive."]);@@ -687,7 +687,7 @@ class SpiderFootWebUi:ret = dbh.scanResultsUpdateFP(id, allIds, fp)if not ret:return json.dumps(["ERROR", "Exception encountered."])- else:+ else:return json.dumps(["SUCCESS", ""])resultsetfp.exposed = True@@ -871,12 +871,12 @@ class SpiderFootWebUi:"error for this scan probably exists. <a href='/scandelete?id=" + \id + "&confirm=1'>Click here to delete it.</a>")errState = True-+if not errState:globalScanStatus.setStatus(id, "ABORT-REQUESTED")templ = Template(filename='dyn/scanlist.tmpl', lookup=self.lookup)- return templ.render(pageid='SCANLIST', stoppedscan=True,+ return templ.render(pageid='SCANLIST', stoppedscan=True,errors=error, docroot=self.docroot)stopscanmulti.exposed = Truediff --git a/test/unit/test_publicsuffixlist.py b/test/unit/test_publicsuffixlist.pyindex 98bd72a1..74ea9065 100644--- a/test/unit/test_publicsuffixlist.py+++ b/test/unit/test_publicsuffixlist.py@@ -6,7 +6,7 @@ class TestPublicSuffixList(unittest.TestCase):"""Test PublicSuffixList"""-+def test_init(self):"""Test __init__(self, input_data)diff --git a/test/unit/test_spiderfootevent.py b/test/unit/test_spiderfootevent.pyindex b8ebb60c..f4978ab8 100644--- a/test/unit/test_spiderfootevent.py+++ b/test/unit/test_spiderfootevent.py@@ -6,7 +6,7 @@ class TestSpiderFootEvent(unittest.TestCase):"""Test SpiderFootEvent"""-+def test_init_root_event(self):"""Test __init__(self, eventType, data, module, sourceEvent, confidence=100, visibility=100, risk=0)diff --git a/test/unit/test_spiderfootplugin.py b/test/unit/test_spiderfootplugin.pyindex e4b7b217..567d376f 100644--- a/test/unit/test_spiderfootplugin.py+++ b/test/unit/test_spiderfootplugin.py@@ -2,12 +2,12 @@import sflibfrom sflib import SpiderFootPlugin, SpiderFootEventimport unittest-+class TestSpiderFootPlugin(unittest.TestCase):"""Test SpiderFoot"""-+def test_init(self):"""Test __init__(self)diff --git a/test/unit/test_spiderfoottarget.py b/test/unit/test_spiderfoottarget.pyindex 117a8907..3dcdcf40 100644--- a/test/unit/test_spiderfoottarget.py+++ b/test/unit/test_spiderfoottarget.py@@ -1,7 +1,7 @@# test_spiderfoottarget.pyfrom sflib import SpiderFootTargetimport unittest-+class TestSpiderFootTarget(unittest.TestCase):"""Test SpiderFootTarget@@ -40,7 +40,7 @@ class TestSpiderFootTarget(unittest.TestCase):def test_set_alias(self):"""- Test setAlias(self, value, typeName)+ Test setAlias(self, value, typeName)"""target_value = 'example target value'target_type = 'IP_ADDRESS'@@ -51,7 +51,7 @@ class TestSpiderFootTarget(unittest.TestCase):def test_get_aliases_should_return_a_list(self):"""- Test getAliases(self)+ Test getAliases(self)"""target_value = 'example target value'target_type = 'IP_ADDRESS'@@ -73,7 +73,7 @@ class TestSpiderFootTarget(unittest.TestCase):def test_get_names_should_return_a_list(self):"""- Test getNames(self)+ Test getNames(self)"""target_value = 'example target value'target_type = 'IP_ADDRESS'@@ -95,7 +95,7 @@ class TestSpiderFootTarget(unittest.TestCase):def test_matches(self):"""- Test matches(self, value, includeParents=False, includeChildren=True)+ Test matches(self, value, includeParents=False, includeChildren=True)"""target_value = 'example target value'target_type = 'IP_ADDRESS'