修复查询结果中\n有导致多匹配问题#77

This commit is contained in:
Jing Ling
2020-06-09 18:38:03 +08:00
parent ef063d8778
commit c6fb8802c7
+2 -1
View File
@@ -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):