SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
sfp_s3bucket: Handle S3 base URL without a bucket name.
smicallef6b12ad2a1a0e
diff --git a/modules/sfp_s3bucket.py b/modules/sfp_s3bucket.pyindex c9ab9312..dd05ae2e 100644--- a/modules/sfp_s3bucket.py+++ b/modules/sfp_s3bucket.py@@ -160,7 +160,11 @@ class sfp_s3bucket(SpiderFootPlugin):if ".amazonaws.com" in eventData:b = self.sf.urlFQDN(eventData)if b in self.opts['endpoints']:- b += "/" + eventData.split(b + "/")[1].split("/")[0]+ try:+ b += "/" + eventData.split(b + "/")[1].split("/")[0]+ except Exception:+ # Not a proper bucket path+ returnevt = SpiderFootEvent("CLOUD_STORAGE_BUCKET", b, self.__name__, event)self.notifyListeners(evt)return