Skip to content

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

Force the Content-type or ssltools fails.

smicallefa52cc682c46b
diff --git a/modules/sfp_ssltools.py b/modules/sfp_ssltools.py
index 0b6d4748..0324bfce 100644
--- a/modules/sfp_ssltools.py
+++ b/modules/sfp_ssltools.py
@@ -57,9 +57,11 @@ class sfp_ssltools(SpiderFootPlugin):
# Query SSL Tools for DNS
def queryDns(self, domain):
postdata = 'url=' + domain
+ hdr = { 'Content-type': 'application/x-www-form-urlencoded' }
res = self.sf.fetchUrl('http://www.ssltools.com/api/dns',
postData=postdata,
+ headers=hdr,
timeout=self.opts['_fetchtimeout'],
useragent=self.opts['_useragent'])
@@ -80,9 +82,11 @@ class sfp_ssltools(SpiderFootPlugin):
# Query SSL Tools for certificate information
def queryScan(self, domain, port):
postdata = 'url=' + domain + '&path=/&port=' + str(port) + '&live_scan=true'
+ hdr = { 'Content-type': 'application/x-www-form-urlencoded' }
res = self.sf.fetchUrl('http://www.ssltools.com/api/scan',
postData=postdata,
+ headers=hdr,
timeout=self.opts['_fetchtimeout'],
useragent=self.opts['_useragent'])