This commit is contained in:
shmilylty
2022-11-22 15:52:18 +08:00
parent 5aae215bca
commit 291414c34f
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -69,8 +69,9 @@ class Search(Module):
def recursive_subdomain(self):
# 递归搜索下一层的子域
# 从1开始是之前已经做过1层子域搜索了,当前实际递归层数是layer+1
subdomains = self.subdomains.copy()
for layer_num in range(1, self.recursive_times):
for subdomain in self.subdomains:
for subdomain in subdomains:
# 进行下一层子域搜索的限制条件
count = subdomain.count('.') - self.domain.count('.')
if count == layer_num:
+1 -1
View File
@@ -72,4 +72,4 @@ def run(domain):
if __name__ == '__main__':
run('example.com')
run('mi.com')