mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-10-28 19:55:52 +08:00
添加搜索退出判断
This commit is contained in:
@@ -26,6 +26,8 @@ class ShodanAPI(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
|
||||||
if subdomain_find:
|
if subdomain_find:
|
||||||
self.subdomains = self.subdomains.union(subdomain_find)
|
self.subdomains = self.subdomains.union(subdomain_find)
|
||||||
page += 1
|
page += 1
|
||||||
|
|||||||
Reference in New Issue
Block a user