mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 12:57:50 +08:00
修复收集到的域名有逗号等非法子域问题
This commit is contained in:
@@ -25,8 +25,9 @@ class RiskIQ(Query):
|
|||||||
if not resp:
|
if not resp:
|
||||||
return
|
return
|
||||||
data = resp.json()
|
data = resp.json()
|
||||||
names = data.get('subdomains')
|
subnames = data.get('subdomains')
|
||||||
self.subdomains = set(map(lambda sub: f'{sub}.{self.domain}', names))
|
subdomain_str = str(set(map(lambda subname: f'{subname}.{self.domain}', subnames)))
|
||||||
|
self.subdomains = self.collect_subdomains(subdomain_str)
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
"""
|
"""
|
||||||
@@ -53,4 +54,4 @@ def run(domain):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
run('example.com')
|
run('alibabagroup.com')
|
||||||
|
|||||||
Reference in New Issue
Block a user