SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Code review changes
Krishnasis Mandal280a8e279b6f
diff --git a/modules/sfp_snov.py b/modules/sfp_snov.pyindex 20948b29..f88ba582 100644--- a/modules/sfp_snov.py+++ b/modules/sfp_snov.py@@ -12,12 +12,11 @@# -------------------------------------------------------------------------------from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent-from netaddr import IPNetworkimport urllib.request, urllib.parse, urllib.errorimport jsonclass sfp_snov(SpiderFootPlugin):- """Snov:Investigate,Passive:Reputation Systems:apikey:Gather available email ids from target domain"""+ """Snov:Footprint,Investigate,Passive:Search Engines:apikey:Gather available email IDs from identified domains"""opts = {'api_key_client_id': '',@@ -79,10 +78,11 @@ class sfp_snov(SpiderFootPlugin):try:# Extract access token from responsecontent = res.get('content')- if isinstance(content, str):- accessToken = json.loads(content).get('access_token')- else:- accessToken = res.get('access_token')+ accessToken = json.loads(content).get('access_token')++ if accessToken is None:+ self.sf.error("No access token received from snov.io for the provided Client ID and/or Client Secret", False)+ return Nonereturn str(accessToken)except Exception: