xunfeng icon indicating copy to clipboard operation
xunfeng copied to clipboard

搜索所有的扫描结果

Open JKme opened this issue 6 years ago • 2 comments

想要看下所有的搜索结果,然后加了这个条件,在/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 = []

JKme avatar Jul 04 '19 10:07 JKme

ip: 就可以

ywolf avatar Jul 04 '19 11:07 ywolf

沙雕了,谢谢

JKme avatar Jul 04 '19 11:07 JKme