Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

引发ValueError('RecordCollection包含多于一行。') ValueError: RecordCollection包含多于一行。使用RecordCollection.one时只期望一行 #199

Closed
yuebinge opened this issue Apr 30, 2021 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@yuebinge
Copy link

是否使用了最新代码
是或否(如果不是的话尝试克隆最新的代码再跑一下!)

Bug描述
清晰而简洁的Bug描述(必写)
raise ValueError('RecordCollection contained more than one row. '
ValueError: RecordCollection contained more than one row. Expects only one row when using RecordCollection.one
运行环境

  • 系统:[例如Windows 10 x64](必写)
  • Python版本:[例如3.7.1](必写)
  • OneForAll版本:[例如0.3.0](必写)
    kali2020.1
    python3.7.6
    oneforall0.4.3

如何复现
复现步骤(选写)
python3 oneforall.py --targets ./target.txt run

复现命令(必写)
python3 oneforall.py --targets ./target.txt run
报错文本
复制完整的报错文本(必写)
23:40:07,930 [INFOR] finder:23 - Start Finder module
Traceback (most recent call last):
File "oneforall.py", line 277, in
fire.Fire(OneForAll)
File "/usr/local/lib/python3.7/dist-packages/fire/core.py", line 141, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/usr/local/lib/python3.7/dist-packages/fire/core.py", line 471, in _Fire
target=component.name)
File "/usr/local/lib/python3.7/dist-packages/fire/core.py", line 681, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "oneforall.py", line 254, in run
self.main()
File "oneforall.py", line 205, in main
finder.run(self.domain, self.data, self.port)
File "/root/Desktop/OneForAll-master/modules/finder.py", line 25, in run
found_subdomains = find_subdomains(domain, data)
File "/root/Desktop/OneForAll-master/modules/finder.py", line 190, in find_subdomains
rsp_html = db.get_resp_by_url(domain, req_url)
File "/root/Desktop/OneForAll-master/common/database.py", line 258, in get_resp_by_url
return self.query(sql).scalar()
File "/root/Desktop/OneForAll-master/common/records.py", line 244, in scalar
row = self.one()
File "/root/Desktop/OneForAll-master/common/records.py", line 238, in one
raise ValueError('RecordCollection contained more than one row. '
ValueError: RecordCollection contained more than one row. Expects only one row when using RecordCollection.one
Request Progress: 341it [00:40, 8.35it/s]
root@kali:~/Desktop/OneForAll-master#

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

实际结果
清晰而简洁的实际结果描述(选写,如出现什么错误)

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

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

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

@yuebinge yuebinge added the bug Something isn't working label Apr 30, 2021
@dead5nd
Copy link

dead5nd commented Apr 30, 2021

遇到了同样的问题

@saucer-man
Copy link

同样遇到这个问题,没有动代码就跑不起来,这个bug没人解吗?

@je5442804
Copy link

我这里也有,常常出现在待检测子域名十万以上的时候(我也不知道为什么会有十万这么多)

@shmilylty shmilylty mentioned this issue Jul 14, 2021
@KingXS
Copy link

KingXS commented Jul 28, 2021

how to solve it

@YzaSoLong
Copy link

可以通过设置config/setting.py 中 enable_finder_module为False 暂时性解决

@tarihub
Copy link
Contributor

tarihub commented Nov 15, 2021

可以通过设置config/setting.py 中 enable_finder_module为False 暂时性解决

感觉这样可能收集少不少子域呀。

@ko2sec ko2sec mentioned this issue Jul 5, 2022
@shmilylty
Copy link
Owner

现在还有此问题吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants