mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 12:57:50 +08:00
修复查询结果中\n有导致多匹配问题#77
This commit is contained in:
@@ -20,7 +20,8 @@ class Crtsh(Query):
|
|||||||
resp = self.get(self.addr, params)
|
resp = self.get(self.addr, params)
|
||||||
if not resp:
|
if not resp:
|
||||||
return
|
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)
|
self.subdomains = self.subdomains.union(subdomains)
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user