mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-25 20:37:48 +08:00
fixed #176
This commit is contained in:
+2
-1
@@ -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:
|
||||
|
||||
@@ -72,4 +72,4 @@ def run(domain):
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
run('example.com')
|
||||
run('mi.com')
|
||||
|
||||
Reference in New Issue
Block a user