exp?793.py 文件源码

python
阅读 38 收藏 0 点赞 0 评论 0

项目:poc 作者: Chinalover 项目源码 文件源码
def audit(arg):
    port =9200
    host = arg
    pluginList = ['test','kopf', 'HQ', 'marvel', 'bigdesk' ,'head' ]
    try:
        for plugin in pluginList:     
            socket.setdefaulttimeout(3)
            s = socket.socket()
            s.connect((host,port))
            s.send("GET /_plugin/%s/ HTTP/1.0\n"
                "Host: %s\n\n" % (plugin, host))
            file = s.recv(16)
            if ("HTTP/1.0 200 OK" in file):
                grab(plugin,host,port)
                break
    except Exception:
            pass
    finally:
        s.close()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号