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

一直报错,提示“Module.yaml.scanner.ScannerError: while scanning a simple key” #4

Open
t0ber00t opened this issue Jan 28, 2021 · 6 comments

Comments

@t0ber00t
Copy link

image
Module.yaml.scanner.ScannerError: while scanning a simple key
in "scan_config.yaml", line 18, column 9
could not find expected ':'
in "scan_config.yaml", line 20, column 9

@Miagz
Copy link
Owner

Miagz commented Feb 3, 2021

image
Module.yaml.scanner.ScannerError: while scanning a simple key
in "scan_config.yaml", line 18, column 9
could not find expected ':'
in "scan_config.yaml", line 20, column 9

原因很简单呀,scan_config.yaml 中配置出问题了,你key值没有打空格就会造成这样,打空格间隔是yaml的一个规则

@Miagz
Copy link
Owner

Miagz commented Feb 3, 2021

image
Module.yaml.scanner.ScannerError: while scanning a simple key
in "scan_config.yaml", line 18, column 9
could not find expected ':'
in "scan_config.yaml", line 20, column 9

image
我也复现出这个情况了
image
原因就是没有打空格间隔

@t0ber00t
Copy link
Author

t0ber00t commented Feb 4, 2021

image
Module.yaml.scanner.ScannerError: while scanning a simple key
in "scan_config.yaml", line 18, column 9
could not find expected ':'
in "scan_config.yaml", line 20, column 9

原因很简单呀,scan_config.yaml 中配置出问题了,你key值没有打空格就会造成这样,打空格间隔是yaml的一个规则

感谢大佬,就是这个原因,但是新的问题也出现了。。。求指导
image

image

@t0ber00t
Copy link
Author

t0ber00t commented Feb 4, 2021

image
Module.yaml.scanner.ScannerError: while scanning a simple key
in "scan_config.yaml", line 18, column 9
could not find expected ':'
in "scan_config.yaml", line 20, column 9

image
我也复现出这个情况了
image
原因就是没有打空格间隔

感谢大佬,就是这个原因,之前的问题解决了,但是新的问题也出现了。。。求指导
image

image

@Miagz
Copy link
Owner

Miagz commented Feb 4, 2021

image
Module.yaml.scanner.ScannerError: while scanning a simple key
in "scan_config.yaml", line 18, column 9
could not find expected ':'
in "scan_config.yaml", line 20, column 9

image
我也复现出这个情况了
image
原因就是没有打空格间隔

感谢大佬,就是这个原因,之前的问题解决了,但是新的问题也出现了。。。求指导
image

image

这个好像是因为fofa语法方面出的问题,是domain处的语法出了点问题吧,具体的我也不清楚,我复现了好几回就复现出一次你那种情况,但继续跑时有正常运行了

@Stowaway-y
Copy link

domain的语法不对吗?我也出现这个问题了啊
File "scan.py", line 72, in Fofa
for host in search.get_data('%s'%(value),count)['results']:
KeyError: 'results'
Exception in thread Thread-2:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "scan.py", line 113, in run
urllist = self.Fofa(count)
File "scan.py", line 72, in Fofa
for host in search.get_data('%s'%(value),count)['results']:
KeyError: 'results'
Exception in thread Thread-1:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "scan.py", line 113, in run
urllist = self.Fofa(count)
File "scan.py", line 72, in Fofa
for host in search.get_data('%s'%(value),count)['results']:
KeyError: 'results'
这个解决了么?

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