Skip to content

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

sfp_crt: Add the option to not fetch all certs found.

smicallefb83b7b89e56d
diff --git a/modules/sfp_crt.py b/modules/sfp_crt.py
index 3bc32fc1..58fbf219 100644
--- a/modules/sfp_crt.py
+++ b/modules/sfp_crt.py
@@ -41,10 +41,12 @@ class sfp_crt(SpiderFootPlugin):
opts = {
'verify': True,
+ 'fetchcerts': True,
}
optdescs = {
- 'verify': 'Verify certificate subject alternative names resolve.'
+ 'verify': 'Verify certificate subject alternative names resolve.',
+ 'fetchcerts': 'Fetch each certificate found, for processing by other modules.',
}
results = None
@@ -121,7 +123,8 @@ class sfp_crt(SpiderFootPlugin):
continue
self.cert_ids[cert_id] = True
- fetch_certs.append(cert_id)
+ if self.opts['fetchcerts']:
+ fetch_certs.append(cert_id)
domain = cert_info.get('name_value')
if '\n' in domain: