添加跳出判断

This commit is contained in:
shmilylty
2019-08-12 11:26:50 +08:00
parent e1d5515c44
commit f3e76f7ee5
3 changed files with 6 additions and 0 deletions
+2
View File
@@ -33,6 +33,8 @@ class FoFa(Search):
if not resp:
return
subdomain_find = self.match(self.domain, resp.text)
if not subdomain_find: # 搜索没有发现子域名则停止搜索
break
self.subdomains = self.subdomains.union(subdomain_find)
self.page_num += 1