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

搜索所有的扫描结果 #219

Open
JKme opened this issue Jul 4, 2019 · 2 comments
Open

搜索所有的扫描结果 #219

JKme opened this issue Jul 4, 2019 · 2 comments

Comments

@JKme
Copy link

JKme commented Jul 4, 2019

想要看下所有的搜索结果,然后加了这个条件,在/opt/xunfeng/views/lib/QueryLogic.py里面添加了两行代码,在搜索的时候输入abc:就可以搜索出来全部的扫描机器,如有需求的话可以看着改,我写这个判断有点二,端口大于0的都输出。

elif q_key == 'hostname':
          query['hostname'] = {"$regex": q_value, '$options': 'i'}
elif q_key == "abc":
           query['port'] = {'$gt':0}
elif q_key == 'all':
             filter_lst = []
@ywolf
Copy link
Collaborator

ywolf commented Jul 4, 2019

ip:
就可以

@JKme
Copy link
Author

JKme commented Jul 4, 2019

沙雕了,谢谢

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

2 participants