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

AttributeError: 'NoneType' object has no attribute 'scalar' #361

Open
KRookieSec opened this issue Dec 15, 2023 · 2 comments
Open

AttributeError: 'NoneType' object has no attribute 'scalar' #361

KRookieSec opened this issue Dec 15, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@KRookieSec
Copy link

Bug描述
子域名收集报错“AttributeError: 'NoneType' object has no attribute 'scalar'”

运行环境

  • 系统:mac(intel版)
  • Python版本:3.11.5
  • OneForAll版本:0.4.5

复现命令(必写)
python3 oneforall.py --target lenovo.com --alive True run

报错文本
File "/Users/mac/SafeTools/信息收集/oneforall/OneForAll-master/oneforall.py", line 275, in <module> fire.Fire(OneForAll) File "/usr/local/lib/python3.11/site-packages/fire/core.py", line 141, in Fire component_trace = _Fire(component, args, parsed_flag_args, context, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/fire/core.py", line 466, in _Fire component, remaining_args = _CallAndUpdateTrace( ^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/fire/core.py", line 681, in _CallAndUpdateTrace component = fn(*varargs, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^ File "/Users/mac/SafeTools/信息收集/oneforall/OneForAll-master/oneforall.py", line 252, in run self.main() File "/Users/mac/SafeTools/信息收集/oneforall/OneForAll-master/oneforall.py", line 198, in main request.run_request(self.domain, self.data, self.port) File "/Users/mac/SafeTools/信息收集/oneforall/OneForAll-master/common/request.py", line 263, in run_request count = utils.count_alive(domain) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/mac/SafeTools/信息收集/oneforall/OneForAll-master/common/utils.py", line 425, in count_alive count = result.scalar() ^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'scalar'

@KRookieSec KRookieSec added the bug Something isn't working label Dec 15, 2023
@KRookieSec
Copy link
Author

把--alive True删除又没有这个报错了

@m4ra7h0n
Copy link

m4ra7h0n commented Apr 3, 2024

主要是no such table: abc_com'导致的,我也遇到同样问题并没有解决

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

3 participants