OneForAll icon indicating copy to clipboard operation
OneForAll copied to clipboard

RuntimeError: Set changed size during iteration

Open ThestaRY7 opened this issue 4 years ago • 0 comments

是否使用了最新代码

Bug描述 清晰而简洁的Bug描述(必写) image

运行环境

  • 系统:MacOS 11.1
  • Python版本:Python 3.8.2
  • OneForAll版本:v0.4.3

如何复现 复现步骤(选写)

setting.py文件修改设置为:

enable_takeover_check = True # 开启子域接管风险检查(默认False)

HTTP请求子域的端口范围 参数可选值有 'small', 'medium', 'large' http_request_port = 'large' # 请求端口范围(默认 'small',表示请求子域的80,443端口)

result_save_format = 'xls' # 子域结果保存文件格式(默认csv)

爆破模块设置 brute_concurrent_num = 2000 # 爆破时并发查询数量(默认2000,最大推荐10000) 爆破所使用的字典路径(默认None则使用data/subdomains.txt,自定义字典请使用绝对路径) brute_wordlist_path = None enable_recursive_brute = True # 是否使用递归爆破(默认False) brute_recursive_depth = 2 # 递归爆破深度(默认2层) 爆破下一层子域所使用的字典路径(默认None则使用data/subnames_next.txt,自定义字典请使用绝对路径)

搜索模块设置 enable_recursive_search = True # 递归搜索子域 search_recursive_times = 2 # 递归搜索层数

复现命令(必写) python3 oneforall.py --target=baidu.com run

报错文本 复制完整的报错文本(必写) Exception in thread so: Traceback (most recent call last): File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/Applications/网络安全/1.渗透测试/1.安全扫描/1.子域名扫描/OneForAll/modules/search/so.py", line 71, in run search.run() File "/Applications/网络安全/1.渗透测试/1.安全扫描/1.子域名扫描/OneForAll/modules/search/so.py", line 56, in run for subdomain in self.recursive_subdomain(): File "/Applications/网络安全/1.渗透测试/1.安全扫描/1.子域名扫描/OneForAll/common/search.py", line 73, in recursive_subdomain for subdomain in self.subdomains: RuntimeError: Set changed size during iteration

预期结果 清晰而简洁的预期结果描述(选写,如正常情况应该是怎么样的) 正常情况应该正常跑完输出xls文件

实际结果 清晰而简洁的实际结果描述(选写,如出现什么错误) Exception in thread so: Traceback (most recent call last): File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/Applications/网络安全/1.渗透测试/1.安全扫描/1.子域名扫描/OneForAll/modules/search/so.py", line 71, in run search.run() File "/Applications/网络安全/1.渗透测试/1.安全扫描/1.子域名扫描/OneForAll/modules/search/so.py", line 56, in run for subdomain in self.recursive_subdomain(): File "/Applications/网络安全/1.渗透测试/1.安全扫描/1.子域名扫描/OneForAll/common/search.py", line 73, in recursive_subdomain for subdomain in self.subdomains: RuntimeError: Set changed size during iteration

屏幕截图 完整OneForAll执行流程截图(建议上传) image

日志上传 上传oneforall.log日志文件(复杂问题建议上传) oneforall的副本.log

其他补充 关于bug的其他一些补充说明

ThestaRY7 avatar Jan 12 '21 14:01 ThestaRY7