From c6fb8802c7e522eb068704f54fadf31b0bb13195 Mon Sep 17 00:00:00 2001 From: Jing Ling Date: Tue, 9 Jun 2020 18:38:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9F=A5=E8=AF=A2=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E4=B8=AD\n=E6=9C=89=E5=AF=BC=E8=87=B4=E5=A4=9A?= =?UTF-8?q?=E5=8C=B9=E9=85=8D=E9=97=AE=E9=A2=98#77?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/certificates/crtsh.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/certificates/crtsh.py b/modules/certificates/crtsh.py index 90b61e4..ba555ac 100644 --- a/modules/certificates/crtsh.py +++ b/modules/certificates/crtsh.py @@ -20,7 +20,8 @@ class Crtsh(Query): resp = self.get(self.addr, params) if not resp: return - subdomains = self.match_subdomains(self.domain, str(resp.json())) + text = resp.text.replace(r'\n', ' ') + subdomains = self.match_subdomains(self.domain, text) self.subdomains = self.subdomains.union(subdomains) def run(self):