From 291414c34f06a1c562999dbde8b4df2c135d9134 Mon Sep 17 00:00:00 2001 From: shmilylty Date: Tue, 22 Nov 2022 15:52:18 +0800 Subject: [PATCH] fixed #176 --- common/search.py | 3 ++- modules/search/so.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common/search.py b/common/search.py index 86aa3e9..9d7dcb4 100644 --- a/common/search.py +++ b/common/search.py @@ -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: diff --git a/modules/search/so.py b/modules/search/so.py index 5081c1d..7b8fb71 100644 --- a/modules/search/so.py +++ b/modules/search/so.py @@ -72,4 +72,4 @@ def run(domain): if __name__ == '__main__': - run('example.com') + run('mi.com')