添加搜索退出判断

This commit is contained in:
shmilylty
2019-08-11 20:08:06 +08:00
parent 3c8627035d
commit d2219bdf8c
+2
View File
@@ -26,6 +26,8 @@ class ShodanAPI(Search):
if not resp:
return
subdomain_find = self.match(self.domain, resp.text)
if not subdomain_find: # 搜索没有发现子域名则停止搜索
break
if subdomain_find:
self.subdomains = self.subdomains.union(subdomain_find)
page += 1