Skip to content

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

sfp_dnsdumpster: Fail in any kind of issue obtaining the CSRF token.

smicallef034ed2bcc231
diff --git a/modules/sfp_dnsdumpster.py b/modules/sfp_dnsdumpster.py
index 6a7a4ab1..d32d674e 100644
--- a/modules/sfp_dnsdumpster.py
+++ b/modules/sfp_dnsdumpster.py
@@ -71,7 +71,7 @@ class sfp_dnsdumpster(SpiderFootPlugin):
if k == "csrftoken":
csrftoken = str(v)
csrfmiddlewaretoken = html.find("input", {"name": "csrfmiddlewaretoken"}).attrs.get("value", None)
- except AttributeError:
+ except Exception:
pass
# Abort if we didn't get the tokens