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

oneforall报错'NoneType' object is not iterable #8

Open
Paladin1412 opened this issue Jun 1, 2020 · 11 comments
Open

oneforall报错'NoneType' object is not iterable #8

Paladin1412 opened this issue Jun 1, 2020 · 11 comments

Comments

@Paladin1412
Copy link

Traceback (most recent call last):
File "client/subdomain/oneforall/sbudomain_run.py", line 200, in
main()
File "client/subdomain/oneforall/sbudomain_run.py", line 89, in main
subdomain.run()
File "client/subdomain/oneforall/sbudomain_run.py", line 25, in run
OneForAll(self.host).run()
File "/Watchdog/Watchdog/client/subdomain/oneforall/../../../client/subdomain/oneforall/oneforall.py", line 237, in run
self.main()
File "/Watchdog/Watchdog/client/subdomain/oneforall/../../../client/subdomain/oneforall/oneforall.py", line 193, in main
self.data = resolve.run_resolve(self.domain, self.data)
File "/Watchdog/Watchdog/client/subdomain/oneforall/../../../client/subdomain/oneforall/common/resolve.py", line 164, in run_resolve
data = update_data(data, records)
File "/Watchdog/Watchdog/client/subdomain/oneforall/../../../client/subdomain/oneforall/common/resolve.py", line 39, in update_data
items.update(record)
TypeError: 'NoneType' object is not iterable
18:18:13,591 [INFOR] utils:557 - 结束执行massdns
18:18:13,592 [INFOR] resolve:68 - 正在处理解析结果

@CTF-MissFeng
Copy link
Owner

传递的值是什么,单独执行oneforall试试

@Paladin1412
Copy link
Author

return data,records时候records为空,对比目前新版oneforall的common/resolve.py文件,未对records为空的情况进行判断

@Paladin1412
Copy link
Author

onerforall 单独执行某子域名时不会触发,当新建任务为*.baidu.com等格式时必现

@kesonn
Copy link

kesonn commented Aug 7, 2020

这个问题有点严重,作者请问什么时候解决一下?

@kesonn
Copy link

kesonn commented Aug 7, 2020

image

@CTF-MissFeng
Copy link
Owner

说明获取的子域名对应的解析IP不是正确的ip,这里已经做了判断了。这是oneforall脚本bug,可看oneforall修复记录

1

@kesonn
Copy link

kesonn commented Aug 7, 2020

可是这样下来,上千个子域名,只入库了2个子域。。。。

@kesonn
Copy link

kesonn commented Aug 7, 2020

我记得旧版没有这个问题的

@CTF-MissFeng
Copy link
Owner

刚刚测试了下,并没有任何问题。解析子域名ip正常,你应该是扫描的泛解析的域名,解析对应的IP都是一样的不正确的。你可以换个普通域名试试

@kesonn
Copy link

kesonn commented Aug 8, 2020

谢谢大佬。楼主的报错,我也有
image

@CTF-MissFeng
Copy link
Owner

猜测应该是输入的格式错误了,当你输入*.baidu.com时,程序会过滤*.为空。所以剩余baidu.com是正确的。但是输入错误了(如空格.什么的),所以输入待扫描时请检查输入的格式是否为.domain。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants