Skip to content

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

sfp_crt: Ensure queries to crt.sh are always ASCII.

smicallef3a9770c047b4
diff --git a/modules/sfp_crt.py b/modules/sfp_crt.py
index 0a1fcf51..01037c2c 100644
--- a/modules/sfp_crt.py
+++ b/modules/sfp_crt.py
@@ -87,7 +87,7 @@ class sfp_crt(SpiderFootPlugin):
self.debug(f"Received event, {eventName}, from {srcModuleName}")
params = {
- 'q': '%.' + str(eventData),
+ 'q': '%.' + eventData.encode('raw_unicode_escape').decode("ascii", errors='replace'),
'output': 'json'
}