mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-10-29 04:15:52 +08:00
添加跳出判断
This commit is contained in:
@@ -30,6 +30,8 @@ class CertDBAPI(Query):
|
|||||||
return
|
return
|
||||||
json = resp.json()
|
json = resp.json()
|
||||||
subdomains_find = utils.match_subdomain(self.domain, str(json))
|
subdomains_find = utils.match_subdomain(self.domain, str(json))
|
||||||
|
if not subdomains_find: # 搜索没有发现子域名则停止搜索
|
||||||
|
break
|
||||||
# 合并搜索子域名搜索结果
|
# 合并搜索子域名搜索结果
|
||||||
self.subdomains = self.subdomains.union(subdomains_find)
|
self.subdomains = self.subdomains.union(subdomains_find)
|
||||||
page_num += 1
|
page_num += 1
|
||||||
|
|||||||
@@ -33,6 +33,8 @@ class FoFa(Search):
|
|||||||
if not resp:
|
if not resp:
|
||||||
return
|
return
|
||||||
subdomain_find = self.match(self.domain, resp.text)
|
subdomain_find = self.match(self.domain, resp.text)
|
||||||
|
if not subdomain_find: # 搜索没有发现子域名则停止搜索
|
||||||
|
break
|
||||||
self.subdomains = self.subdomains.union(subdomain_find)
|
self.subdomains = self.subdomains.union(subdomain_find)
|
||||||
self.page_num += 1
|
self.page_num += 1
|
||||||
|
|
||||||
|
|||||||
@@ -49,6 +49,8 @@ class ZoomEyeAPI(Search):
|
|||||||
if not resp:
|
if not resp:
|
||||||
return
|
return
|
||||||
subdomain_find = self.match(self.domain, resp.text)
|
subdomain_find = self.match(self.domain, resp.text)
|
||||||
|
if not subdomain_find: # 搜索没有发现子域名则停止搜索
|
||||||
|
break
|
||||||
self.subdomains = self.subdomains.union(subdomain_find)
|
self.subdomains = self.subdomains.union(subdomain_find)
|
||||||
page_num += 1
|
page_num += 1
|
||||||
if page_num > 500:
|
if page_num > 500:
|
||||||
|
|||||||
Reference in New Issue
Block a user