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