set使用update

This commit is contained in:
Jing Ling
2020-08-20 14:01:17 +08:00
parent f8f3ad0352
commit e056834f1d
38 changed files with 42 additions and 41 deletions
+2 -2
View File
@@ -163,7 +163,7 @@ def find_subdomains(domain, data):
if not rsp_html:
continue
logger.log('DEBUG', f'matching subdomains from response of {req_url}')
subdomains = subdomains.union(match_subdomains(domain, rsp_html))
subdomains.update(match_subdomains(domain, rsp_html))
urls = find_url(rsp_html)
if not urls:
continue
@@ -175,5 +175,5 @@ def find_subdomains(domain, data):
for resp, text in resp_data:
if text:
logger.log('DEBUG', f'matching subdomains from response of {resp.url}')
subdomains = subdomains.union(match_subdomains(domain, text))
subdomains.update(match_subdomains(domain, text))
return subdomains