SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
modules: except 'Exception' rather than 'BaseException'
Brendan Coles3808c1774563
diff --git a/modules/sfp_abusech.py b/modules/sfp_abusech.pyindex 1e98f5bd..4d747a2f 100644--- a/modules/sfp_abusech.py+++ b/modules/sfp_abusech.py@@ -203,7 +203,7 @@ class sfp_abusech(SpiderFootPlugin):re.match(rxTgt, line, re.IGNORECASE):self.sf.debug(target + "/" + targetDom + " found in " + check + " list.")return url- except BaseException as e:+ except Exception as e:self.sf.debug("Error encountered parsing 2: " + str(e))continuediff --git a/modules/sfp_adblock.py b/modules/sfp_adblock.pyindex 53de7f69..f0dfb70a 100644--- a/modules/sfp_adblock.py+++ b/modules/sfp_adblock.py@@ -95,7 +95,7 @@ class sfp_adblock(SpiderFootPlugin):self.sf.debug("RULE LINES: " + str(len(lines)))try:self.rules = adblockparser.AdblockRules(lines)- except BaseException as e:+ except Exception as e:self.errorState = Trueself.sf.error("Parsing error handling AdBlock list: " + str(e), False)else:@@ -118,7 +118,7 @@ class sfp_adblock(SpiderFootPlugin):evt = SpiderFootEvent("URL_ADBLOCKED" + pagetype, eventData,self.__name__, event)self.notifyListeners(evt)- except BaseException as e:+ except Exception as e:self.sf.error("Parsing error handling AdBlock list: " + str(e), False)self.errorState = Truediff --git a/modules/sfp_ahmia.py b/modules/sfp_ahmia.pyindex bc9dcd5f..dcf52fcd 100644--- a/modules/sfp_ahmia.py+++ b/modules/sfp_ahmia.py@@ -135,7 +135,7 @@ class sfp_ahmia(SpiderFootPlugin):try:startIndex = res['content'].index(eventData) - 120endIndex = startIndex + len(eventData) + 240- except BaseException:+ except Exception:self.sf.debug("String not found in content.")continuediff --git a/modules/sfp_alienvault.py b/modules/sfp_alienvault.pyindex 3c600414..7b5d0882 100644--- a/modules/sfp_alienvault.py+++ b/modules/sfp_alienvault.py@@ -221,7 +221,7 @@ class sfp_alienvault(SpiderFootPlugin):if self.opts['age_limit_days'] > 0 and last_ts < age_limit_ts:self.sf.debug("Record found but too old, skipping.")continue- except BaseException:+ except Exception:self.sf.debug("Couldn't parse date from AlienVault so assuming it's OK.")e = SpiderFootEvent(evtType, host, self.__name__, event)self.notifyListeners(e)@@ -258,7 +258,7 @@ class sfp_alienvault(SpiderFootPlugin):if self.opts['age_limit_days'] > 0 and created_ts < age_limit_ts:self.sf.debug("Record found but too old, skipping.")continue- except BaseException:+ except Exception:self.sf.debug("Couldn't parse date from AlienVault so assuming it's OK.")# For netblocks, we need to create the IP address event so thatdiff --git a/modules/sfp_alienvaultiprep.py b/modules/sfp_alienvaultiprep.pyindex 3b921437..9a8e1894 100644--- a/modules/sfp_alienvaultiprep.py+++ b/modules/sfp_alienvaultiprep.py@@ -168,7 +168,7 @@ class sfp_alienvaultiprep(SpiderFootPlugin):re.match(rxTgt, line, re.IGNORECASE):self.sf.debug(target + "/" + targetDom + " found in " + check + " list.")return url- except BaseException as e:+ except Exception as e:self.sf.debug("Error encountered parsing 2: " + str(e))continuediff --git a/modules/sfp_archiveorg.py b/modules/sfp_archiveorg.pyindex e5c9f696..499901a0 100644--- a/modules/sfp_archiveorg.py+++ b/modules/sfp_archiveorg.py@@ -149,7 +149,7 @@ class sfp_archiveorg(SpiderFootPlugin):try:ret = json.loads(res['content'])- except BaseException as e:+ except Exception as e:self.sf.debug(f"Error processing JSON response from Archive.org: {e}")ret = Nonediff --git a/modules/sfp_arin.py b/modules/sfp_arin.pyindex 2e811bbc..f1ffd04e 100644--- a/modules/sfp_arin.py+++ b/modules/sfp_arin.py@@ -105,7 +105,7 @@ class sfp_arin(SpiderFootPlugin):fname = lnamelname = turl += "pocs;first=" + fname + ";last=" + lname- except BaseException as e:+ except Exception as e:self.sf.debug("Couldn't process name: " + value + " (" + str(e) + ")")return Nonediff --git a/modules/sfp_badpackets.py b/modules/sfp_badpackets.pyindex b117d650..801d7c1f 100644--- a/modules/sfp_badpackets.py+++ b/modules/sfp_badpackets.py@@ -252,14 +252,14 @@ class sfp_badpackets(SpiderFootPlugin):category = record.get('tags')[0].get('category')if category:maliciousIPDesc += " - CATEGORY : " + str(category) + "\n"- except BaseException:+ except Exception:self.sf.debug("No category found for target")try:description = record.get('tags')[0].get('description')if description:maliciousIPDesc += " - DESCRIPTION : " + str(description) + "\n"- except BaseException:+ except Exception:self.sf.debug("No description found for target")maliciousIPDescHash = self.sf.hashstring(maliciousIPDesc)diff --git a/modules/sfp_bambenek.py b/modules/sfp_bambenek.pyindex 394fed98..62782bc6 100644--- a/modules/sfp_bambenek.py+++ b/modules/sfp_bambenek.py@@ -183,7 +183,7 @@ class sfp_bambenek(SpiderFootPlugin):re.match(rxTgt, line, re.IGNORECASE):self.sf.debug(target + "/" + targetDom + " found in " + check + " list.")return url- except BaseException as e:+ except Exception as e:self.sf.debug("Error encountered parsing 2: " + str(e))continuediff --git a/modules/sfp_base64.py b/modules/sfp_base64.pyindex 7872d9be..ab041a46 100644--- a/modules/sfp_base64.py+++ b/modules/sfp_base64.py@@ -82,7 +82,7 @@ class sfp_base64(SpiderFootPlugin):try:string += " (" + base64.b64decode(match) + ")"- except BaseException:+ except Exception:self.sf.debug("Unable to base64-decode string.")continuediff --git a/modules/sfp_bgpview.py b/modules/sfp_bgpview.pyindex 9043199c..1e2d4f38 100644--- a/modules/sfp_bgpview.py+++ b/modules/sfp_bgpview.py@@ -72,7 +72,7 @@ class sfp_bgpview(SpiderFootPlugin):try:json_data = json.loads(res['content'])- except BaseException as e:+ except Exception as e:self.sf.debug(f"Error processing JSON response from BGPView: {e}")return None@@ -100,7 +100,7 @@ class sfp_bgpview(SpiderFootPlugin):try:json_data = json.loads(res['content'])- except BaseException as e:+ except Exception as e:self.sf.debug(f"Error processing JSON response from BGPView: {e}")return None@@ -128,7 +128,7 @@ class sfp_bgpview(SpiderFootPlugin):try:json_data = json.loads(res['content'])- except BaseException as e:+ except Exception as e:self.sf.debug(f"Error processing JSON response from BGPView: {e}")return Nonediff --git a/modules/sfp_binaryedge.py b/modules/sfp_binaryedge.pyindex f7c77372..90f346f0 100644--- a/modules/sfp_binaryedge.py+++ b/modules/sfp_binaryedge.py@@ -439,7 +439,7 @@ class sfp_binaryedge(SpiderFootPlugin):try:banner = prec['result']['data']['service']['banner']- except BaseException:+ except Exception:self.sf.debug("No banner information found.")continuediff --git a/modules/sfp_blocklistde.py b/modules/sfp_blocklistde.pyindex ebd70f5e..d1b8c48a 100644--- a/modules/sfp_blocklistde.py+++ b/modules/sfp_blocklistde.py@@ -168,7 +168,7 @@ class sfp_blocklistde(SpiderFootPlugin):re.match(rxTgt, line, re.IGNORECASE):self.sf.debug(target + "/" + targetDom + " found in " + check + " list.")return url- except BaseException as e:+ except Exception as e:self.sf.debug("Error encountered parsing 2: " + str(e))continuediff --git a/modules/sfp_botvrij.py b/modules/sfp_botvrij.pyindex c26d516b..bebf6920 100644--- a/modules/sfp_botvrij.py+++ b/modules/sfp_botvrij.py@@ -152,7 +152,7 @@ class sfp_botvrij(SpiderFootPlugin):re.match(rxTgt, line, re.IGNORECASE):self.sf.debug(target + "/" + targetDom + " found in " + check + " list.")return url- except BaseException as e:+ except Exception as e:self.sf.debug("Error encountered parsing 2: " + str(e))continuediff --git a/modules/sfp_censys.py b/modules/sfp_censys.pyindex 129f5463..6689fd5d 100644--- a/modules/sfp_censys.py+++ b/modules/sfp_censys.py@@ -272,7 +272,7 @@ class sfp_censys(SpiderFootPlugin):dat = rec['metadata']['os_description']e = SpiderFootEvent("OPERATING_SYSTEM", dat, self.__name__, pevent)self.notifyListeners(e)- except BaseException as e:+ except Exception as e:self.sf.error(f"Error encountered processing record for {eventData} ({e})")# End of sfp_censys classdiff --git a/modules/sfp_circllu.py b/modules/sfp_circllu.pyindex 71c8b777..09378a68 100644--- a/modules/sfp_circllu.py+++ b/modules/sfp_circllu.py@@ -189,7 +189,7 @@ class sfp_circllu(SpiderFootPlugin):if r:e = SpiderFootEvent("SSL_CERTIFICATE_ISSUED", r[0][0], self.__name__, ipe)self.notifyListeners(e)- except BaseException as e:+ except Exception as e:self.sf.error("Invalid response returned from CIRCL.LU: " + str(e), False)if eventName in ['IP_ADDRESS', 'INTERNET_NAME', 'DOMAIN_NAME']:@@ -204,7 +204,7 @@ class sfp_circllu(SpiderFootPlugin):continuetry:rec = json.loads(line)- except BaseException as e:+ except Exception as e:self.sf.error("Invalid response returned from CIRCL.LU: " + str(e), False)continuediff --git a/modules/sfp_citadel.py b/modules/sfp_citadel.pyindex 6a2df225..f4eafd6b 100644--- a/modules/sfp_citadel.py+++ b/modules/sfp_citadel.py@@ -110,7 +110,7 @@ class sfp_citadel(SpiderFootPlugin):try:data = json.loads(res['content'])- except BaseException as e:+ except Exception as e:self.sf.debug(f"Error processing JSON response: {e}")return Nonediff --git a/modules/sfp_cleanbrowsing.py b/modules/sfp_cleanbrowsing.pyindex 0e46d923..15851720 100644--- a/modules/sfp_cleanbrowsing.py+++ b/modules/sfp_cleanbrowsing.py@@ -82,7 +82,7 @@ class sfp_cleanbrowsing(SpiderFootPlugin):try:addrs = res.query(qaddr)self.sf.debug(f"Addresses returned: {addrs}")- except BaseException:+ except Exception:self.sf.debug(f"Unable to resolve {qaddr}")return Falsediff --git a/modules/sfp_cloudflaredns.py b/modules/sfp_cloudflaredns.pyindex 63c20f7f..132bd35a 100644--- a/modules/sfp_cloudflaredns.py+++ b/modules/sfp_cloudflaredns.py@@ -74,7 +74,7 @@ class sfp_cloudflaredns(SpiderFootPlugin):try:addrs = res.query(qaddr)self.sf.debug("Addresses returned: " + str(addrs))- except BaseException:+ except Exception:self.sf.debug(f"Unable to resolve {qaddr}")return False@@ -106,7 +106,7 @@ class sfp_cloudflaredns(SpiderFootPlugin):try:if self.sf.resolveHost(eventData):resolved = True- except BaseException:+ except Exception:return Noneif resolved:diff --git a/modules/sfp_coinblocker.py b/modules/sfp_coinblocker.pyindex 07f9e96b..b8f9ed61 100644--- a/modules/sfp_coinblocker.py+++ b/modules/sfp_coinblocker.py@@ -180,7 +180,7 @@ class sfp_coinblocker(SpiderFootPlugin):re.match(rxTgt, line, re.IGNORECASE):self.sf.debug(target + "/" + targetDom + " found in " + check + " list.")return url- except BaseException as e:+ except Exception as e:self.sf.debug("Error encountered parsing 2: " + str(e))continuediff --git a/modules/sfp_commoncrawl.py b/modules/sfp_commoncrawl.pyindex c5ea85ff..6c6cac59 100644--- a/modules/sfp_commoncrawl.py+++ b/modules/sfp_commoncrawl.py@@ -185,7 +185,7 @@ class sfp_commoncrawl(SpiderFootPlugin):evt = SpiderFootEvent("LINKED_URL_INTERNAL", link['url'],self.__name__, event)self.notifyListeners(evt)- except BaseException as e:+ except Exception as e:self.sf.error("Malformed JSON from CommonCrawl.org: " + str(e), False)return Nonediff --git a/modules/sfp_comodo.py b/modules/sfp_comodo.pyindex 48e6b074..eb1f62f5 100644--- a/modules/sfp_comodo.py+++ b/modules/sfp_comodo.py@@ -77,7 +77,7 @@ class sfp_comodo(SpiderFootPlugin):try:addrs = res.query(qaddr)self.sf.debug("Addresses returned: " + str(addrs))- except BaseException:+ except Exception:self.sf.debug(f"Unable to resolve {qaddr}")return False@@ -104,7 +104,7 @@ class sfp_comodo(SpiderFootPlugin):try:if self.sf.resolveHost(eventData):resolved = True- except BaseException:+ except Exception:return Noneif resolved:diff --git a/modules/sfp_company.py b/modules/sfp_company.pyindex 6344b139..08dedd5d 100644--- a/modules/sfp_company.py+++ b/modules/sfp_company.py@@ -100,7 +100,7 @@ class sfp_company(SpiderFootPlugin):try:if eventName == "SSL_CERTIFICATE_ISSUED":eventData = eventData.split("O=")[1]- except BaseException:+ except Exception:self.sf.debug("Couldn't strip out 'O=' from certificate issuer, proceeding anyway...")# Find chunks of text containing what might be a company name first.diff --git a/modules/sfp_cookie.py b/modules/sfp_cookie.pyindex 055670b9..82ecfc5c 100644--- a/modules/sfp_cookie.py+++ b/modules/sfp_cookie.py@@ -70,7 +70,7 @@ class sfp_cookie(SpiderFootPlugin):jdata = json.loads(eventData)if jdata is None:return None- except BaseException:+ except Exception:self.sf.error("Received HTTP headers from another module in an unexpected format.", False)return Nonediff --git a/modules/sfp_countryname.py b/modules/sfp_countryname.pyindex e1fd7e5c..c1d6afc7 100644--- a/modules/sfp_countryname.py+++ b/modules/sfp_countryname.py@@ -70,13 +70,13 @@ class sfp_countryname(SpiderFootPlugin):try:phoneNumber = phonenumbers.parse(srcPhoneNumber)- except BaseException:+ except Exception:self.sf.debug(f"Skipped invalid phone number: {srcPhoneNumber}")return Nonetry:countryCode = region_code_for_country_code(phoneNumber.country_code)- except BaseException:+ except Exception:self.sf.debug(f"Lookup of region code failed for phone number: {srcPhoneNumber}")return Nonediff --git a/modules/sfp_crt.py b/modules/sfp_crt.pyindex 66b5c925..3bc32fc1 100644--- a/modules/sfp_crt.py+++ b/modules/sfp_crt.py@@ -99,7 +99,7 @@ class sfp_crt(SpiderFootPlugin):try:data = json.loads(res['content'])- except BaseException as e:+ except Exception as e:self.sf.debug(f"Error processing JSON response: {e}")return None@@ -180,7 +180,7 @@ class sfp_crt(SpiderFootPlugin):try:cert = self.sf.parseCert(str(res['content']))- except BaseException as e:+ except Exception as e:self.sf.info('Error parsing certificate: ' + str(e))continuediff --git a/modules/sfp_customfeed.py b/modules/sfp_customfeed.pyindex e6429770..9a0efa20 100644--- a/modules/sfp_customfeed.py+++ b/modules/sfp_customfeed.py@@ -155,7 +155,7 @@ class sfp_customfeed(SpiderFootPlugin):re.match(rxTgt, line, re.IGNORECASE):self.sf.debug(target + "/" + targetDom + " found in " + check + " list.")return url- except BaseException as e:+ except Exception as e:self.sf.debug("Error encountered parsing 2: " + str(e))continuediff --git a/modules/sfp_cybercrimetracker.py b/modules/sfp_cybercrimetracker.pyindex 79afc283..4d5a5a47 100644--- a/modules/sfp_cybercrimetracker.py+++ b/modules/sfp_cybercrimetracker.py@@ -164,7 +164,7 @@ class sfp_cybercrimetracker(SpiderFootPlugin):re.match(rxTgt, line, re.IGNORECASE):self.sf.debug(target + "/" + targetDom + " found in " + check + " list.")return url- except BaseException as e:+ except Exception as e:self.sf.debug("Error encountered parsing 2: " + str(e))continuereturn Nonediff --git a/modules/sfp_darksearch.py b/modules/sfp_darksearch.pyindex b837bcaa..a5dbbee5 100644--- a/modules/sfp_darksearch.py+++ b/modules/sfp_darksearch.py@@ -94,7 +94,7 @@ class sfp_darksearch(SpiderFootPlugin):try:data = json.loads(res['content'])- except BaseException as e:+ except Exception as e:self.sf.debug(f"Error processing JSON response: {e}")return None@@ -183,7 +183,7 @@ class sfp_darksearch(SpiderFootPlugin):try:startIndex = res['content'].index(eventData) - 120endIndex = startIndex + len(eventData) + 240- except BaseException:+ except Exception:self.sf.debug("String not found in content.")continuediff --git a/modules/sfp_dnsbrute.py b/modules/sfp_dnsbrute.pyindex 7d736d5b..2e67ebf6 100644--- a/modules/sfp_dnsbrute.py+++ b/modules/sfp_dnsbrute.py@@ -99,7 +99,7 @@ class sfp_dnsbrute(SpiderFootPlugin):if addrs:with self.lock:self.hostResults[name] = True- except BaseException:+ except Exception:with self.lock:self.hostResults[name] = Falsediff --git a/modules/sfp_dnscommonsrv.py b/modules/sfp_dnscommonsrv.pyindex 8e54b01e..2ff9340e 100644--- a/modules/sfp_dnscommonsrv.py+++ b/modules/sfp_dnscommonsrv.py@@ -132,7 +132,7 @@ class sfp_dnscommonsrv(SpiderFootPlugin):try:answers = res.query(name, 'SRV')- except BaseException:+ except Exception:answers = []for a in answers:diff --git a/modules/sfp_dnsgrep.py b/modules/sfp_dnsgrep.pyindex c9b2dd2a..aab27cf9 100644--- a/modules/sfp_dnsgrep.py+++ b/modules/sfp_dnsgrep.py@@ -136,7 +136,7 @@ class sfp_dnsgrep(SpiderFootPlugin):for r in fdns:try:ip, domain = r.split(',')- except BaseException:+ except Exception:continuedomains.append(domain)@@ -147,7 +147,7 @@ class sfp_dnsgrep(SpiderFootPlugin):for r in rdns:try:ip, domain = r.split(',')- except BaseException:+ except Exception:continuedomains.append(domain)diff --git a/modules/sfp_dnsneighbor.py b/modules/sfp_dnsneighbor.pyindex add3bb58..9f26601e 100644--- a/modules/sfp_dnsneighbor.py+++ b/modules/sfp_dnsneighbor.py@@ -80,14 +80,14 @@ class sfp_dnsneighbor(SpiderFootPlugin):try:ip = IPAddress(eventData)- except BaseException:+ except Exception:self.sf.error(f"Invalid IP address received: {eventData}", False)return Nonetry:minip = IPAddress(int(ip) - self.opts['lookasidecount'])maxip = IPAddress(int(ip) + self.opts['lookasidecount'])- except BaseException:+ except Exception:self.sf.error(f"Received an invalid IP address: {eventData}", False)return Nonediff --git a/modules/sfp_dnsraw.py b/modules/sfp_dnsraw.pyindex 5083cca4..7f2f3ae2 100644--- a/modules/sfp_dnsraw.py+++ b/modules/sfp_dnsraw.py@@ -109,7 +109,7 @@ class sfp_dnsraw(SpiderFootPlugin):if not len(res.answer):continue- except BaseException as e:+ except Exception as e:self.sf.error("Failed to obtain DNS response for %s (%s)" % (eventData, e), False)continuediff --git a/modules/sfp_dnszonexfer.py b/modules/sfp_dnszonexfer.pyindex 05362403..f5e0d406 100644--- a/modules/sfp_dnszonexfer.py+++ b/modules/sfp_dnszonexfer.py@@ -119,7 +119,7 @@ class sfp_dnszonexfer(SpiderFootPlugin):evt = SpiderFootEvent("INTERNET_NAME", strdata, self.__name__, parentEvent)self.notifyListeners(evt)- except BaseException as e:+ except Exception as e:self.sf.info(f"Unable to perform DNS zone transfer for {eventData} ({name}): {e}")# End of sfp_dnszonexfer classdiff --git a/modules/sfp_dronebl.py b/modules/sfp_dronebl.pyindex 69fa6b83..421512cc 100644--- a/modules/sfp_dronebl.py+++ b/modules/sfp_dronebl.py@@ -146,7 +146,7 @@ class sfp_dronebl(SpiderFootPlugin):evt = SpiderFootEvent(e, text, self.__name__, parentEvent)self.notifyListeners(evt)- except BaseException as e:+ except Exception as e:self.sf.debug("Unable to resolve " + qaddr + " / " + lookup + ": " + str(e))return Nonediff --git a/modules/sfp_duckduckgo.py b/modules/sfp_duckduckgo.pyindex 50f6ef0f..ca0d0600 100644--- a/modules/sfp_duckduckgo.py+++ b/modules/sfp_duckduckgo.py@@ -95,7 +95,7 @@ class sfp_duckduckgo(SpiderFootPlugin):try:ret = json.loads(res['content'])- except BaseException as e:+ except Exception as e:self.sf.error(f"Error processing JSON response from DuckDuckGo: {e}", False)return Nonediff --git a/modules/sfp_emailrep.py b/modules/sfp_emailrep.pyindex 3e3344da..93b07215 100644--- a/modules/sfp_emailrep.py+++ b/modules/sfp_emailrep.py@@ -114,7 +114,7 @@ class sfp_emailrep(SpiderFootPlugin):try:data = json.loads(res['content'])- except BaseException as e:+ except Exception as e:self.sf.debug(f"Error processing JSON response: {e}")return Nonediff --git a/modules/sfp_filemeta.py b/modules/sfp_filemeta.pyindex 29c92c4d..bdc8b419 100644--- a/modules/sfp_filemeta.py+++ b/modules/sfp_filemeta.py@@ -109,7 +109,7 @@ class sfp_filemeta(SpiderFootPlugin):data = pdf.getDocumentInfo()meta = str(data)self.sf.debug("Obtained meta data from " + eventData)- except BaseException as e:+ except Exception as e:self.sf.error("Unable to parse meta data from: "+ eventData + "(" + str(e) + ")", False)return None@@ -124,7 +124,7 @@ class sfp_filemeta(SpiderFootPlugin):c = doc.core_properties.commentsdata = [_f for _f in [a, c] if _f]meta = ", ".join(data)- except BaseException as e:+ except Exception as e:self.sf.error("Unable to process file: "+ eventData + "(" + str(e) + ")", False)return None@@ -139,7 +139,7 @@ class sfp_filemeta(SpiderFootPlugin):c = doc.core_properties.commentsdata = [_f for _f in [a, c] if _f]meta = ", ".join(data)- except BaseException as e:+ except Exception as e:self.sf.error("Unable to process file: "+ eventData + "(" + str(e) + ")", False)return None@@ -151,7 +151,7 @@ class sfp_filemeta(SpiderFootPlugin):if data is None or len(data) == 0:continuemeta = str(data)- except BaseException as e:+ except Exception as e:self.sf.error("Unable to parse meta data from: "+ eventData + "(" + str(e) + ")", False)return None@@ -174,7 +174,7 @@ class sfp_filemeta(SpiderFootPlugin):if "Image Software" in data:val.append(str(data['Image Software']))- except BaseException as e:+ except Exception as e:self.sf.error("Failed to parse PDF, " + eventData + ": " + str(e), False)return Nonediff --git a/modules/sfp_flickr.py b/modules/sfp_flickr.pyindex 9aca0b53..efb5be91 100644--- a/modules/sfp_flickr.py+++ b/modules/sfp_flickr.py@@ -128,7 +128,7 @@ class sfp_flickr(SpiderFootPlugin):try:data = json.loads(res['content'])- except BaseException as e:+ except Exception as e:self.sf.debug(f"Error processing JSON response: {e}")return Nonediff --git a/modules/sfp_fringeproject.py b/modules/sfp_fringeproject.pyindex 1f521cdd..c2f8653e 100644--- a/modules/sfp_fringeproject.py+++ b/modules/sfp_fringeproject.py@@ -82,7 +82,7 @@ class sfp_fringeproject(SpiderFootPlugin):try:json_data = json.loads(res['content'])- except BaseException as e:+ except Exception as e:self.sf.debug(f"Error processing JSON response from Fringe Project: {e}")return None@@ -162,7 +162,7 @@ class sfp_fringeproject(SpiderFootPlugin):for tag in tags:try:port = re.findall(r'^port:([0-9]+)', tag)- except BaseException:+ except Exception:self.sf.debug("Didn't get sane data from FringeProject.")continuediff --git a/modules/sfp_fsecure_riddler.py b/modules/sfp_fsecure_riddler.pyindex 3d305ba4..a83da62c 100644--- a/modules/sfp_fsecure_riddler.py+++ b/modules/sfp_fsecure_riddler.py@@ -101,13 +101,13 @@ class sfp_fsecure_riddler(SpiderFootPlugin):try:data = json.loads(res['content'])- except BaseException as e:+ except Exception as e:self.sf.debug(f"Error processing JSON response from F-Secure Riddler: {e}")return Nonetry:token = data.get('response').get('user').get('authentication_token')- except BaseException:+ except Exception:self.sf.error('Login failed', False)self.errorState = Truereturn None@@ -149,7 +149,7 @@ class sfp_fsecure_riddler(SpiderFootPlugin):try:data = json.loads(res['content'])- except BaseException as e:+ except Exception as e:self.sf.debug(f"Error processing JSON response from F-Secure Riddler: {e}")return Nonediff --git a/modules/sfp_github.py b/modules/sfp_github.pyindex b5daa08c..02ce0a28 100644--- a/modules/sfp_github.py+++ b/modules/sfp_github.py@@ -101,7 +101,7 @@ class sfp_github(SpiderFootPlugin):try:network = eventData.split(": ")[0]url = eventData.split(": ")[1].replace("<SFURL>", "").replace("</SFURL>", "")- except BaseException as e:+ except Exception as e:self.sf.error(f"Unable to parse SOCIAL_MEDIA: {eventData} ({e})", False)return None@@ -112,7 +112,7 @@ class sfp_github(SpiderFootPlugin):try:urlParts = url.split("/")username = urlParts[len(urlParts) - 1]- except BaseException:+ except Exception:self.sf.debug(f"Couldn't get a username out of {url}")return None@@ -127,7 +127,7 @@ class sfp_github(SpiderFootPlugin):try:json_data = json.loads(res['content'])- except BaseException as e:+ except Exception as e:self.sf.debug(f"Error processing JSON response: {e}")return None@@ -185,7 +185,7 @@ class sfp_github(SpiderFootPlugin):if not failed:try:ret = json.loads(res['content'])- except BaseException as e:+ except Exception as e:self.sf.debug(f"Error processing JSON response from GitHub: {e}")ret = None@@ -227,7 +227,7 @@ class sfp_github(SpiderFootPlugin):if ret is None:self.sf.error(f"Unable to process empty response from Github for: {username}", False)failed = True- except BaseException:+ except Exception:self.sf.error(f"Unable to process invalid response from Github for: {username}", False)failed = True@@ -253,7 +253,7 @@ class sfp_github(SpiderFootPlugin):try:repret = json.loads(res['content'])- except BaseException as e:+ except Exception as e:self.sf.error(f"Invalid JSON returned from Github: {e}", False)continuediff --git a/modules/sfp_gravatar.py b/modules/sfp_gravatar.pyindex 65771595..81dc0362 100644--- a/modules/sfp_gravatar.py+++ b/modules/sfp_gravatar.py@@ -92,7 +92,7 @@ class sfp_gravatar(SpiderFootPlugin):try:data = json.loads(res['content'])- except BaseException as e:+ except Exception as e:self.sf.debug(f"Error processing JSON response: {e}")return Nonediff --git a/modules/sfp_grep_app.py b/modules/sfp_grep_app.pyindex 04a01560..4867da8f 100644--- a/modules/sfp_grep_app.py+++ b/modules/sfp_grep_app.py@@ -89,7 +89,7 @@ class sfp_grep_app(SpiderFootPlugin):try:data = json.loads(res['content'])- except BaseException as e:+ except Exception as e:self.sf.debug(f"Error processing JSON response: {e}")return Nonediff --git a/modules/sfp_haveibeenpwned.py b/modules/sfp_haveibeenpwned.pyindex 7839f5a3..fd517257 100644--- a/modules/sfp_haveibeenpwned.py+++ b/modules/sfp_haveibeenpwned.py@@ -144,7 +144,7 @@ class sfp_haveibeenpwned(SpiderFootPlugin):site = n["Title"]else:site = n["Name"]- except BaseException as e:+ except Exception as e:self.sf.debug(f"Unable to parse result from HaveIBeenPwned?: {e}")continuediff --git a/modules/sfp_honeypot.py b/modules/sfp_honeypot.pyindex 9b13be8d..df19719d 100644--- a/modules/sfp_honeypot.py+++ b/modules/sfp_honeypot.py@@ -164,7 +164,7 @@ class sfp_honeypot(SpiderFootPlugin):evt = SpiderFootEvent(e, text.format(qaddr), self.__name__, parentEvent)self.notifyListeners(evt)- except BaseException as e:+ except Exception as e:self.sf.debug("Unable to resolve " + qaddr + " / " + lookup + ": " + str(e))return Nonediff --git a/modules/sfp_hosting.py b/modules/sfp_hosting.pyindex 1721e798..a8c4e61c 100644--- a/modules/sfp_hosting.py+++ b/modules/sfp_hosting.py@@ -73,13 +73,13 @@ class sfp_hosting(SpiderFootPlugin):continuetry:[start, end, title, url] = line.split(",")- except BaseException:+ except Exception:continuetry:if IPAddress(qaddr) > IPAddress(start) and IPAddress(qaddr) < IPAddress(end):return [title, url]- except BaseException as e:+ except Exception as e:self.sf.debug("Encountered an issue processing an IP: " + str(e))continuediff --git a/modules/sfp_instagram.py b/modules/sfp_instagram.pyindex ad40452a..2fbd0153 100644--- a/modules/sfp_instagram.py+++ b/modules/sfp_instagram.py@@ -66,7 +66,7 @@ class sfp_instagram(SpiderFootPlugin):try:data = json.loads(json_data[0])- except BaseException as e:+ except Exception as e:self.sf.debug(f"Error processing JSON response: {e}")return None@@ -88,7 +88,7 @@ class sfp_instagram(SpiderFootPlugin):try:network = eventData.split(": ")[0]url = eventData.split(": ")[1].replace("<SFURL>", "").replace("</SFURL>", "")- except BaseException as e:+ except Exception as e:self.sf.error(f"Unable to parse SOCIAL_MEDIA: {eventData} ({e})", False)return Nonediff --git a/modules/sfp_intelx.py b/modules/sfp_intelx.pyindex 21782ece..3d3ae5c8 100644--- a/modules/sfp_intelx.py+++ b/modules/sfp_intelx.py@@ -230,7 +230,7 @@ class sfp_intelx(SpiderFootPlugin):if not val or not evt:self.sf.debug(f"Unexpected record, skipping ({rec['bucket']})")continue- except BaseException as e:+ except Exception as e:self.sf.error(f"Error processing content from IntelX: {e}", False)continue@@ -265,7 +265,7 @@ class sfp_intelx(SpiderFootPlugin):if not val or not evt:self.sf.debug("Unexpected record, skipping.")continue- except BaseException as e:+ except Exception as e:self.sf.error(f"Error processing content from IntelX: {e}", False)continuediff --git a/modules/sfp_keybase.py b/modules/sfp_keybase.pyindex d7d1457f..74f4b081 100644--- a/modules/sfp_keybase.py+++ b/modules/sfp_keybase.py@@ -106,7 +106,7 @@ class sfp_keybase(SpiderFootPlugin):try:if not int(code) == 0:return None- except BaseException:+ except Exception:self.sf.error("Invalid code returned as response", False)return None@@ -165,7 +165,7 @@ class sfp_keybase(SpiderFootPlugin):# Contains all data about the target usernametry:them = content.get('them')[0]- except BaseException:+ except Exception:self.sf.error("Invalid data received", False)them = Nonediff --git a/modules/sfp_maltiverse.py b/modules/sfp_maltiverse.pyindex 84c24d53..f3065e37 100644--- a/modules/sfp_maltiverse.py+++ b/modules/sfp_maltiverse.py@@ -113,7 +113,7 @@ class sfp_maltiverse(SpiderFootPlugin):# Maltiverse returns \\n instead of \n in the responsedata = str(res['content']).replace("\\n", " ")return json.loads(data)- except BaseException:+ except Exception:self.sf.error("Incorrectly formatted data received as JSON response", False)return None@@ -212,7 +212,7 @@ class sfp_maltiverse(SpiderFootPlugin):try:lastSeenDate = datetime.strptime(str(lastSeen), "%Y-%m-%d %H:%M:%S")- except BaseException:+ except Exception:self.sf.error("Invalid date in JSON response, skipping", False)continuediff --git a/modules/sfp_malwaredomainlist.py b/modules/sfp_malwaredomainlist.pyindex 4aeb3167..fdc62ffe 100644--- a/modules/sfp_malwaredomainlist.py+++ b/modules/sfp_malwaredomainlist.py@@ -179,7 +179,7 @@ class sfp_malwaredomainlist(SpiderFootPlugin):re.match(rxTgt, line, re.IGNORECASE):self.sf.debug(target + "/" + targetDom + " found in " + check + " list.")return url- except BaseException as e:+ except Exception as e:self.sf.debug("Error encountered parsing 2: " + str(e))continuediff --git a/modules/sfp_malwaredomains.py b/modules/sfp_malwaredomains.pyindex bd63ad1c..5b596592 100644--- a/modules/sfp_malwaredomains.py+++ b/modules/sfp_malwaredomains.py@@ -165,7 +165,7 @@ class sfp_malwaredomains(SpiderFootPlugin):re.match(rxTgt, line, re.IGNORECASE):self.sf.debug(target + "/" + targetDom + " found in " + check + " list.")return url- except BaseException as e:+ except Exception as e:self.sf.debug("Error encountered parsing 2: " + str(e))continuediff --git a/modules/sfp_multiproxy.py b/modules/sfp_multiproxy.pyindex eb6cddb8..b0869173 100644--- a/modules/sfp_multiproxy.py+++ b/modules/sfp_multiproxy.py@@ -164,7 +164,7 @@ class sfp_multiproxy(SpiderFootPlugin):re.match(rxTgt, line, re.IGNORECASE):self.sf.debug(target + "/" + targetDom + " found in " + check + " list.")return url- except BaseException as e:+ except Exception as e:self.sf.debug("Error encountered parsing 2: " + str(e))continuediff --git a/modules/sfp_myspace.py b/modules/sfp_myspace.pyindex 09860080..9bd9418f 100644--- a/modules/sfp_myspace.py+++ b/modules/sfp_myspace.py@@ -96,7 +96,7 @@ class sfp_myspace(SpiderFootPlugin):# Check for email address as name, at the risk of missed results.try:matches = re.findall(r'<a href=\"\/([a-zA-Z0-9_]+)\".*[\&; :\"\#\*\(\"\'\;\,\>\.\?\!]+' + email + r'[\&; :\"\#\*\)\"\'\;\,\<\.\?\!]+', profile, re.IGNORECASE)- except BaseException:+ except Exception:self.sf.debug("Malformed e-mail address, skipping.")return None@@ -118,7 +118,7 @@ class sfp_myspace(SpiderFootPlugin):try:network = eventData.split(": ")[0]url = eventData.split(": ")[1].replace("<SFURL>", "").replace("</SFURL>", "")- except BaseException as e:+ except Exception as e:self.sf.error("Unable to parse SOCIAL_MEDIA: "+ eventData + " (" + str(e) + ")", False)return Nonediff --git a/modules/sfp_norton.py b/modules/sfp_norton.pyindex 61efa637..9c4b488f 100644--- a/modules/sfp_norton.py+++ b/modules/sfp_norton.py@@ -61,7 +61,7 @@ class sfp_norton(SpiderFootPlugin):try:addrs = res.query(qaddr)self.sf.debug("Addresses returned: " + str(addrs))- except BaseException:+ except Exception:self.sf.debug(f"Unable to resolve {qaddr}")return False@@ -88,7 +88,7 @@ class sfp_norton(SpiderFootPlugin):try:if self.sf.resolveHost(eventData):resolved = True- except BaseException:+ except Exception:return Noneif resolved:diff --git a/modules/sfp_numverify.py b/modules/sfp_numverify.pyindex b54a9fe3..537c685f 100644--- a/modules/sfp_numverify.py+++ b/modules/sfp_numverify.py@@ -119,7 +119,7 @@ class sfp_numverify(SpiderFootPlugin):try:data = json.loads(res['content'])- except BaseException as e:+ except Exception as e:self.sf.debug(f"Error processing JSON response: {e}")return Nonediff --git a/modules/sfp_onioncity.py b/modules/sfp_onioncity.pyindex 9a6c6b6d..bfb6e802 100644--- a/modules/sfp_onioncity.py+++ b/modules/sfp_onioncity.py@@ -164,7 +164,7 @@ class sfp_onioncity(SpiderFootPlugin):try:startIndex = res['content'].index(eventData) - 120endIndex = startIndex + len(eventData) + 240- except BaseException:+ except Exception:self.sf.debug("String not found in content.")continuediff --git a/modules/sfp_onionsearchengine.py b/modules/sfp_onionsearchengine.pyindex 4eabf7af..ad1fcd43 100644--- a/modules/sfp_onionsearchengine.py+++ b/modules/sfp_onionsearchengine.py@@ -178,7 +178,7 @@ class sfp_onionsearchengine(SpiderFootPlugin):try:startIndex = res['content'].index(eventData) - 120endIndex = startIndex + len(eventData) + 240- except BaseException:+ except Exception:self.sf.debug('String "' + eventData + '" not found in content.')continuediff --git a/modules/sfp_opendns.py b/modules/sfp_opendns.pyindex 232212f5..942bb6d5 100644--- a/modules/sfp_opendns.py+++ b/modules/sfp_opendns.py@@ -76,7 +76,7 @@ class sfp_opendns(SpiderFootPlugin):try:addrs = res.query(qaddr)self.sf.debug("Addresses returned: " + str(addrs))- except BaseException:+ except Exception:self.sf.debug(f"Unable to resolve {qaddr}")return False@@ -103,7 +103,7 @@ class sfp_opendns(SpiderFootPlugin):try:if self.sf.resolveHost(eventData):resolved = True- except BaseException:+ except Exception:return Noneif resolved:diff --git a/modules/sfp_openphish.py b/modules/sfp_openphish.pyindex 5f1d244e..0b357dec 100644--- a/modules/sfp_openphish.py+++ b/modules/sfp_openphish.py@@ -163,7 +163,7 @@ class sfp_openphish(SpiderFootPlugin):re.match(rxTgt, line, re.IGNORECASE):self.sf.debug(target + "/" + targetDom + " found in " + check + " list.")return url- except BaseException as e:+ except Exception as e:self.sf.debug("Error encountered parsing 2: " + str(e))continuediff --git a/modules/sfp_openstreetmap.py b/modules/sfp_openstreetmap.pyindex 39df890f..867ad1e0 100644--- a/modules/sfp_openstreetmap.py+++ b/modules/sfp_openstreetmap.py@@ -135,7 +135,7 @@ class sfp_openstreetmap(SpiderFootPlugin):try:lat = location.get('lat')lon = location.get('lon')- except BaseException as e:+ except Exception as e:self.sf.debug("Failed to get lat/lon: " + str(e))continuediff --git a/modules/sfp_phishstats.py b/modules/sfp_phishstats.pyindex f2d4cc73..664781d6 100644--- a/modules/sfp_phishstats.py+++ b/modules/sfp_phishstats.py@@ -112,7 +112,7 @@ class sfp_phishstats(SpiderFootPlugin):try:return json.loads(res['content'])- except BaseException as e:+ except Exception as e:self.sf.error(f"Error processing JSON response: {e}", False)return None@@ -177,7 +177,7 @@ class sfp_phishstats(SpiderFootPlugin):try:maliciousIP = data[0].get('ip')- except BaseException:+ except Exception:# If ArrayIndex is out of bounds then data doesn't existcontinuediff --git a/modules/sfp_phishtank.py b/modules/sfp_phishtank.pyindex 4357942a..36001c34 100644--- a/modules/sfp_phishtank.py+++ b/modules/sfp_phishtank.py@@ -159,7 +159,7 @@ class sfp_phishtank(SpiderFootPlugin):re.match(rxTgt, line, re.IGNORECASE):self.sf.debug(target + "/" + targetDom + " found in " + check + " list.")return url- except BaseException as e:+ except Exception as e:self.sf.debug("Error encountered parsing 2: " + str(e))continuediff --git a/modules/sfp_phone.py b/modules/sfp_phone.pyindex 6106ecc9..a23ef597 100644--- a/modules/sfp_phone.py+++ b/modules/sfp_phone.py@@ -82,13 +82,13 @@ class sfp_phone(SpiderFootPlugin):if eventName == 'PHONE_NUMBER':try:number = phonenumbers.parse(eventData)- except BaseException as e:+ except Exception as e:self.sf.debug('Error parsing phone number: ' + str(e))return Nonetry:number_carrier = carrier.name_for_number(number, 'en')- except BaseException as e:+ except Exception as e:self.sf.debug('Error retrieving phone number carrier: ' + str(e))return None@@ -104,7 +104,7 @@ class sfp_phone(SpiderFootPlugin):# try:# location = geocoder.description_for_number(number, 'en')- # except BaseException as e:+ # except Exception as e:# self.sf.debug('Error retrieving phone number location: ' + str(e))# return Nonediff --git a/modules/sfp_portscan_tcp.py b/modules/sfp_portscan_tcp.pyindex 123a9497..5b314348 100644--- a/modules/sfp_portscan_tcp.py+++ b/modules/sfp_portscan_tcp.py@@ -105,7 +105,7 @@ class sfp_portscan_tcp(SpiderFootPlugin):sock = self.sf.safeSocket(ip, port, self.opts['timeout'])with self.lock:self.portResults[peer] = True- except BaseException:+ except Exception:with self.lock:self.portResults[peer] = Falsereturn@@ -193,7 +193,7 @@ class sfp_portscan_tcp(SpiderFootPlugin):scanIps.append(ipaddr)else:scanIps.append(eventData)- except BaseException as e:+ except Exception as e:self.sf.error("Strange netblock identified, unable to parse: "+ eventData + " (" + str(e) + ")", False)return Nonediff --git a/modules/sfp_pulsedive.py b/modules/sfp_pulsedive.pyindex 4151fea0..8c5b310f 100644--- a/modules/sfp_pulsedive.py+++ b/modules/sfp_pulsedive.py@@ -230,7 +230,7 @@ class sfp_pulsedive(SpiderFootPlugin):if self.opts['age_limit_days'] > 0 and created_ts < age_limit_ts:self.sf.debug("Record found but too old, skipping.")continue- except BaseException:+ except Exception:self.sf.debug("Couldn't parse date from Pulsedive so assuming it's OK.")e = SpiderFootEvent(evtType, descr, self.__name__, event)self.notifyListeners(e)diff --git a/modules/sfp_quad9.py b/modules/sfp_quad9.pyindex ca32b5ea..24828734 100644--- a/modules/sfp_quad9.py+++ b/modules/sfp_quad9.py@@ -73,7 +73,7 @@ class sfp_quad9(SpiderFootPlugin):try:addrs = res.query(qry)self.sf.debug(f"Addresses returned: {addrs}")- except BaseException:+ except Exception:self.sf.debug(f"Unable to resolve {qry}")return Falsediff --git a/modules/sfp_riskiq.py b/modules/sfp_riskiq.pyindex d86fb049..ec12430a 100644--- a/modules/sfp_riskiq.py+++ b/modules/sfp_riskiq.py@@ -142,7 +142,7 @@ class sfp_riskiq(SpiderFootPlugin):if 'results' not in ret:self.sf.info("No RiskIQ info found for " + qry)return None- except BaseException as e:+ except Exception as e:self.sf.error(f"Invalid JSON returned by RiskIQ: {e}", False)return None@@ -197,7 +197,7 @@ class sfp_riskiq(SpiderFootPlugin):e = SpiderFootEvent("DOMAIN_NAME", res['subjectCommonName'],self.__name__, event)self.notifyListeners(e)- except BaseException as e:+ except Exception as e:self.sf.error("Invalid response returned from RiskIQ: " + str(e), False)if eventName == 'EMAILADDR':diff --git a/modules/sfp_robtex.py b/modules/sfp_robtex.pyindex 0f7a359e..ec0e97a5 100644--- a/modules/sfp_robtex.py+++ b/modules/sfp_robtex.py@@ -161,7 +161,7 @@ class sfp_robtex(SpiderFootPlugin):try:data = json.loads(res['content'])- except BaseException as e:+ except Exception as e:self.sf.error(f"Error parsing JSON from Robtex API: {e}", False)return Nonediff --git a/modules/sfp_scylla.py b/modules/sfp_scylla.pyindex b697bd88..108aef32 100644--- a/modules/sfp_scylla.py+++ b/modules/sfp_scylla.py@@ -109,7 +109,7 @@ class sfp_scylla(SpiderFootPlugin):try:data = json.loads(res['content'])- except BaseException as e:+ except Exception as e:self.sf.debug(f"Error processing JSON response: {e}")return Nonediff --git a/modules/sfp_shodan.py b/modules/sfp_shodan.pyindex 978f5d9a..395cc730 100644--- a/modules/sfp_shodan.py+++ b/modules/sfp_shodan.py@@ -178,7 +178,7 @@ class sfp_shodan(SpiderFootPlugin):try:network = eventData.split(": ")[0]analytics_id = eventData.split(": ")[1]- except BaseException as e:+ except Exception as e:self.sf.error(f"Unable to parse WEB_ANALYTICS_ID: {eventData} ({e})", False)return Nonediff --git a/modules/sfp_similar.py b/modules/sfp_similar.pyindex 66208dfb..339184d9 100644--- a/modules/sfp_similar.py+++ b/modules/sfp_similar.py@@ -154,7 +154,7 @@ class sfp_similar(SpiderFootPlugin):self.sf.debug(f"Resolved {d_tld}")evt = SpiderFootEvent("SIMILARDOMAIN", d_tld, self.__name__, event)self.notifyListeners(evt)- except BaseException:+ except Exception:continuereturn Nonediff --git a/modules/sfp_slideshare.py b/modules/sfp_slideshare.pyindex 7bcf3c59..72a8ce61 100644--- a/modules/sfp_slideshare.py+++ b/modules/sfp_slideshare.py@@ -83,7 +83,7 @@ class sfp_slideshare(SpiderFootPlugin):try:network = eventData.split(": ")[0]url = eventData.split(": ")[1].replace("<SFURL>", "").replace("</SFURL>", "")- except BaseException as e:+ except Exception as e:self.sf.error(f"Unable to parse SOCIAL_MEDIA: {eventData} ({e})", False)return Nonediff --git a/modules/sfp_snov.py b/modules/sfp_snov.pyindex b4a601d4..6d547699 100644--- a/modules/sfp_snov.py+++ b/modules/sfp_snov.py@@ -191,7 +191,7 @@ class sfp_snov(SpiderFootPlugin):try:data = json.loads(data)- except BaseException:+ except Exception:self.sf.debug("No email address found for target domain")breakdiff --git a/modules/sfp_sorbs.py b/modules/sfp_sorbs.pyindex e1600962..4e99125f 100644--- a/modules/sfp_sorbs.py+++ b/modules/sfp_sorbs.py@@ -143,7 +143,7 @@ class sfp_sorbs(SpiderFootPlugin):evt = SpiderFootEvent(e, text, self.__name__, parentEvent)self.notifyListeners(evt)- except BaseException as e:+ except Exception as e:self.sf.debug("Unable to resolve " + qaddr + " / " + lookup + ": " + str(e))return Nonediff --git a/modules/sfp_spamcop.py b/modules/sfp_spamcop.pyindex d7c5d181..5e64da43 100644--- a/modules/sfp_spamcop.py+++ b/modules/sfp_spamcop.py@@ -134,7 +134,7 @@ class sfp_spamcop(SpiderFootPlugin):evt = SpiderFootEvent(e, text, self.__name__, parentEvent)self.notifyListeners(evt)- except BaseException as e:+ except Exception as e:self.sf.debug("Unable to resolve " + qaddr + " / " + lookup + ": " + str(e))return Nonediff --git a/modules/sfp_spamhaus.py b/modules/sfp_spamhaus.pyindex 7f1892a1..db5587e0 100644--- a/modules/sfp_spamhaus.py+++ b/modules/sfp_spamhaus.py@@ -142,7 +142,7 @@ class sfp_spamhaus(SpiderFootPlugin):evt = SpiderFootEvent(e, text, self.__name__, parentEvent)self.notifyListeners(evt)- except BaseException as e:+ except Exception as e:self.sf.debug("Unable to resolve " + qaddr + " / " + lookup + ": " + str(e))return Nonediff --git a/modules/sfp_spyonweb.py b/modules/sfp_spyonweb.pyindex e21a9edd..5c5f6c96 100644--- a/modules/sfp_spyonweb.py+++ b/modules/sfp_spyonweb.py@@ -238,7 +238,7 @@ class sfp_spyonweb(SpiderFootPlugin):try:network = eventData.split(": ")[0]analytics_id = eventData.split(": ")[1]- except BaseException as e:+ except Exception as e:self.sf.error(f"Unable to parse WEB_ANALYTICS_ID: {eventData} ({e})", False)return Nonediff --git a/modules/sfp_sslcert.py b/modules/sfp_sslcert.pyindex 9a277305..b33bf58b 100644--- a/modules/sfp_sslcert.py+++ b/modules/sfp_sslcert.py@@ -91,7 +91,7 @@ class sfp_sslcert(SpiderFootPlugin):if u.port:port = u.portfqdn = self.sf.urlFQDN(eventData.lower())- except BaseException:+ except Exception:self.sf.debug("Couldn't parse URL: " + eventData)return Noneelse:@@ -111,7 +111,7 @@ class sfp_sslcert(SpiderFootPlugin):dercert = sock.getpeercert(True)pemcert = self.sf.sslDerToPem(dercert)cert = self.sf.parseCert(str(pemcert), fqdn, self.opts['certexpiringdays'])- except BaseException as x:+ except Exception as x:self.sf.info("Unable to SSL-connect to " + fqdn + " (" + str(x) + ")")return Nonediff --git a/modules/sfp_strangeheaders.py b/modules/sfp_strangeheaders.pyindex 510486ae..8cf79dfd 100644--- a/modules/sfp_strangeheaders.py+++ b/modules/sfp_strangeheaders.py@@ -81,7 +81,7 @@ class sfp_strangeheaders(SpiderFootPlugin):jdata = json.loads(eventData)if jdata is None:return None- except BaseException:+ except Exception:self.sf.error("Received HTTP headers from another module in an unexpected format.", False)return Nonediff --git a/modules/sfp_talosintel.py b/modules/sfp_talosintel.pyindex cb1efcd9..93aa81c9 100644--- a/modules/sfp_talosintel.py+++ b/modules/sfp_talosintel.py@@ -168,7 +168,7 @@ class sfp_talosintel(SpiderFootPlugin):re.match(rxTgt, line, re.IGNORECASE):self.sf.debug(f"{target}/{targetDom} found in {check} list.")return url- except BaseException as e:+ except Exception as e:self.sf.debug("Error encountered parsing 2: " + str(e))continuediff --git a/modules/sfp_tldsearch.py b/modules/sfp_tldsearch.pyindex 147b78ac..2d4727c5 100644--- a/modules/sfp_tldsearch.py+++ b/modules/sfp_tldsearch.py@@ -89,7 +89,7 @@ class sfp_tldsearch(SpiderFootPlugin):else:with self.lock:self.tldResults[target] = True- except BaseException:+ except Exception:with self.lock:self.tldResults[target] = Falsediff --git a/modules/sfp_tool_cmseek.py b/modules/sfp_tool_cmseek.pyindex 77008110..6b82ab75 100644--- a/modules/sfp_tool_cmseek.py+++ b/modules/sfp_tool_cmseek.py@@ -134,10 +134,10 @@ class sfp_tool_cmseek(SpiderFootPlugin):evt = SpiderFootEvent("WEBSERVER_TECHNOLOGY", j['cms_name'],self.__name__, event)self.notifyListeners(evt)- except BaseException as e:+ except Exception as e:self.sf.error("Couldn't parse the JSON output of CMSeeK: " + str(e), False)return None- except BaseException as e:+ except Exception as e:self.sf.error("Unable to run CMSeeK: " + str(e), False)return Nonediff --git a/modules/sfp_tool_dnstwist.py b/modules/sfp_tool_dnstwist.pyindex eae0663c..cafa0eac 100644--- a/modules/sfp_tool_dnstwist.py+++ b/modules/sfp_tool_dnstwist.py@@ -133,10 +133,10 @@ class sfp_tool_dnstwist(SpiderFootPlugin):evt = SpiderFootEvent("SIMILARDOMAIN", r['domain-name'],self.__name__, event)self.notifyListeners(evt)- except BaseException as e:+ except Exception as e:self.sf.error("Couldn't parse the JSON output of DNSTwist: " + str(e), False)return None- except BaseException as e:+ except Exception as e:self.sf.error("Unable to run DNSTwist: " + str(e), False)return Nonediff --git a/modules/sfp_tool_nmap.py b/modules/sfp_tool_nmap.pyindex f1691acc..dbc3a8e9 100644--- a/modules/sfp_tool_nmap.py+++ b/modules/sfp_tool_nmap.py@@ -96,7 +96,7 @@ class sfp_tool_nmap(SpiderFootPlugin):self.sf.debug("Skipping port scanning of " + eventData + ", too big.")return None- except BaseException as e:+ except Exception as e:self.sf.error("Strange netblock identified, unable to parse: " + eventData + " (" + str(e) + ")", False)return None@@ -151,7 +151,7 @@ class sfp_tool_nmap(SpiderFootPlugin):if "No exact OS matches for host" in content or "OSScan results may be unreliable" in content:self.sf.debug("Couldn't reliably detect the OS for " + eventData)return None- except BaseException as e:+ except Exception as e:self.sf.error("Unable to run Nmap: " + str(e), False)return None@@ -168,7 +168,7 @@ class sfp_tool_nmap(SpiderFootPlugin):if opsys:evt = SpiderFootEvent("OPERATING_SYSTEM", opsys, self.__name__, event)self.notifyListeners(evt)- except BaseException as e:+ except Exception as e:self.sf.error("Couldn't parse the output of Nmap: " + str(e), False)return None@@ -189,7 +189,7 @@ class sfp_tool_nmap(SpiderFootPlugin):evt = SpiderFootEvent("OPERATING_SYSTEM", opsys, self.__name__, ipevent)self.notifyListeners(evt)currentIp = None- except BaseException as e:+ except Exception as e:self.sf.error(f"Couldn't parse the output of Nmap: {e}", False)return Nonediff --git a/modules/sfp_tool_whatweb.py b/modules/sfp_tool_whatweb.pyindex c464345b..06d5985e 100644--- a/modules/sfp_tool_whatweb.py+++ b/modules/sfp_tool_whatweb.py@@ -113,7 +113,7 @@ class sfp_tool_whatweb(SpiderFootPlugin):aggression = 4if aggression < 1:aggression = 1- except BaseException:+ except Exception:aggression = 1# Run WhatWeb@@ -130,7 +130,7 @@ class sfp_tool_whatweb(SpiderFootPlugin):try:p = Popen(args, stdout=PIPE, stderr=PIPE)stdout, stderr = p.communicate(input=None)- except BaseException as e:+ except Exception as e:self.sf.error(f"Unable to run WhatWeb: {e}", False)return None@@ -145,7 +145,7 @@ class sfp_tool_whatweb(SpiderFootPlugin):try:result_json = json.loads(stdout)- except BaseException as e:+ except Exception as e:self.sf.error(f"Couldn't parse the JSON output of WhatWeb: {e}", False)return Nonediff --git a/modules/sfp_torch.py b/modules/sfp_torch.pyindex c0cb37fd..38489db3 100644--- a/modules/sfp_torch.py+++ b/modules/sfp_torch.py@@ -158,7 +158,7 @@ class sfp_torch(SpiderFootPlugin):try:startIndex = res['content'].index(eventData) - 120endIndex = startIndex + len(eventData) + 240- except BaseException:+ except Exception:self.sf.debug("String not found in content.")continuediff --git a/modules/sfp_torexits.py b/modules/sfp_torexits.pyindex 92fb9e4c..71d0ec53 100644--- a/modules/sfp_torexits.py+++ b/modules/sfp_torexits.py@@ -153,7 +153,7 @@ class sfp_torexits(SpiderFootPlugin):re.match(rxTgt, line, re.IGNORECASE):self.sf.debug(target + "/" + targetDom + " found in " + check + " list.")return url- except BaseException as e:+ except Exception as e:self.sf.debug("Error encountered parsing 2: " + str(e))continuediff --git a/modules/sfp_twitter.py b/modules/sfp_twitter.pyindex 1f1c1286..40c129cc 100644--- a/modules/sfp_twitter.py+++ b/modules/sfp_twitter.py@@ -75,7 +75,7 @@ class sfp_twitter(SpiderFootPlugin):try:network = eventData.split(": ")[0]url = eventData.split(": ")[1].replace("<SFURL>", "").replace("</SFURL>", "")- except BaseException as e:+ except Exception as e:self.sf.error(f"Unable to parse SOCIAL_MEDIA: {eventData} ({e})", False)return Nonediff --git a/modules/sfp_uceprotect.py b/modules/sfp_uceprotect.pyindex 2e203078..8de4d580 100644--- a/modules/sfp_uceprotect.py+++ b/modules/sfp_uceprotect.py@@ -133,7 +133,7 @@ class sfp_uceprotect(SpiderFootPlugin):evt = SpiderFootEvent(e, text, self.__name__, parentEvent)self.notifyListeners(evt)- except BaseException as e:+ except Exception as e:self.sf.debug("Unable to resolve " + qaddr + " / " + lookup + ": " + str(e))return Nonediff --git a/modules/sfp_venmo.py b/modules/sfp_venmo.pyindex d1e0be73..a5dac68f 100644--- a/modules/sfp_venmo.py+++ b/modules/sfp_venmo.py@@ -72,7 +72,7 @@ class sfp_venmo(SpiderFootPlugin):try:data = json.loads(res['content'])- except BaseException as e:+ except Exception as e:self.sf.debug(f"Error processing JSON response: {e}")return Nonediff --git a/modules/sfp_voipbl.py b/modules/sfp_voipbl.pyindex aa7ca09e..27cac8d7 100644--- a/modules/sfp_voipbl.py+++ b/modules/sfp_voipbl.py@@ -165,7 +165,7 @@ class sfp_voipbl(SpiderFootPlugin):re.match(rxTgt, line, re.IGNORECASE):self.sf.debug(target + "/" + targetDom + " found in " + check + " list.")return url- except BaseException as e:+ except Exception as e:self.sf.debug("Error encountered parsing 2: " + str(e))continuediff --git a/modules/sfp_vxvault.py b/modules/sfp_vxvault.pyindex 8cd9c945..965dd759 100644--- a/modules/sfp_vxvault.py+++ b/modules/sfp_vxvault.py@@ -166,7 +166,7 @@ class sfp_vxvault(SpiderFootPlugin):re.match(rxTgt, line, re.IGNORECASE):self.sf.debug(target + "/" + targetDom + " found in " + check + " list.")return url- except BaseException as e:+ except Exception as e:self.sf.debug("Error encountered parsing 2: " + str(e))continuediff --git a/modules/sfp_webserver.py b/modules/sfp_webserver.pyindex 8b993905..da531a4e 100644--- a/modules/sfp_webserver.py+++ b/modules/sfp_webserver.py@@ -72,7 +72,7 @@ class sfp_webserver(SpiderFootPlugin):jdata = json.loads(eventData)if jdata is None:return None- except BaseException:+ except Exception:self.sf.error("Received HTTP headers from another module in an unexpected format.", False)return Nonediff --git a/modules/sfp_whatcms.py b/modules/sfp_whatcms.pyindex e549e175..bfe30ecd 100644--- a/modules/sfp_whatcms.py+++ b/modules/sfp_whatcms.py@@ -130,7 +130,7 @@ class sfp_whatcms(SpiderFootPlugin):try:data = json.loads(res['content'])- except BaseException as e:+ except Exception as e:self.sf.debug(f"Error processing JSON response: {e}")return Nonediff --git a/modules/sfp_whois.py b/modules/sfp_whois.pyindex 211c5888..0d9ff023 100644--- a/modules/sfp_whois.py+++ b/modules/sfp_whois.py@@ -88,7 +88,7 @@ class sfp_whois(SpiderFootPlugin):if not data:self.sf.error("Unable to perform WHOIS on " + eventData, False)return None- except BaseException as e:+ except Exception as e:self.sf.error("Unable to perform WHOIS on " + eventData + ": " + str(e), False)return Nonediff --git a/modules/sfp_yandexdns.py b/modules/sfp_yandexdns.pyindex 1f890500..b2eb5fbc 100644--- a/modules/sfp_yandexdns.py+++ b/modules/sfp_yandexdns.py@@ -75,7 +75,7 @@ class sfp_yandexdns(SpiderFootPlugin):try:addrs = res.query(qaddr)self.sf.debug(f"Addresses returned: {addrs}")- except BaseException:+ except Exception:self.sf.debug(f"Unable to resolve {qaddr}")return False@@ -103,7 +103,7 @@ class sfp_yandexdns(SpiderFootPlugin):try:if self.sf.resolveHost(eventData):resolved = True- except BaseException:+ except Exception:self.sf.debug(f"Unable to resolve {eventData}")return None