Skip to content

使用默认参数也跑不了子域名 #403

@Dawn-horizen

Description

@Dawn-horizen

是否使用了最新代码

Bug描述
默认参数跑不了子域名

运行环境

  • 系统:win11 x64
  • Python版本:3.12.3
  • OneForAll版本:0.45

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

复现命令(必写)
python oneforall.py --target example.com run

报错文本
10:26:12,180 [INFOR] module:63 - AnubisQuery module took 39.1 seconds found 0 subdomains
10:26:14,883 [INFOR] module:63 - SoSearch module took 41.8 seconds found 110 subdomains
10:26:20,346 [INFOR] module:63 - BruteSRV module took 5.4 seconds found 3 subdomains
10:26:20,711 [INFOR] resolve:143 - Start resolving subdomains of 163.com
10:26:20,752 [INFOR] resolve:166 - Running massdns to resolve subdomains
'D:\Program' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
10:26:20,779Traceback (most recent call last):
[ File "D:\Program Files (x86)\tools\subdomain_scan\OneForAll-0.4.5\oneforall.py", line 277, in
INFOR] resolve :fire.Fire(OneForAll)104

  • File "C:\Users\34152\AppData\Local\Programs\Python\Python312\Lib\site-packages\fire\core.py", line 141, in Fire
    Processing resolved results
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\34152\AppData\Local\Programs\Python\Python312\Lib\site-packages\fire\core.py", line 466, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
    ^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\34152\AppData\Local\Programs\Python\Python312\Lib\site-packages\fire\core.py", line 681, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^
    File "D:\Program Files (x86)\tools\subdomain_scan\OneForAll-0.4.5\oneforall.py", line 254, in run
    self.main()
    File "D:\Program Files (x86)\tools\subdomain_scan\OneForAll-0.4.5\oneforall.py", line 184, in main
    self.data = resolve.run_resolve(self.domain, self.data)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "D:\Program Files (x86)\tools\subdomain_scan\OneForAll-0.4.5\common\resolve.py", line 170, in run_resolve
    infos = deal_output(output_path)
    ^^^^^^^^^^^^^^^^^^^^^^^^
    File "D:\Program Files (x86)\tools\subdomain_scan\OneForAll-0.4.5\common\resolve.py", line 106, in deal_output
    with open(output_path) as fd:
    ^^^^^^^^^^^^^^^^^
    FileNotFoundError: [Errno 2] No such file or directory: 'D:\Program Files (x86)\tools\subdomain_scan\OneForAll-0.4.5\results\temp\resolved_result_163.com_20250207_102620.json'

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

实际结果
FileNotFoundError: [Errno 2] No such file or directory: 'D:\Program Files (x86)\tools\subdomain_scan\OneForAll-0.4.5\results\temp\resolved_result_163.com_20250207_102620.json'

屏幕截图

Image

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

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions