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()
评论列表
文章目录