Files
vulnerability-list/memcache_vuln/memcache_un.py
2019-11-04 19:39:49 +08:00

21 lines
522 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# -*- coding: utf-8 -*-
import memcache
def attack(URL):
list = URL.split('/')
try:
print('[+]开始检测-memcache未授权访问漏洞。[+]')
mc = memcache.Client([list[-1]], debug=True)
print('[!]memcache获取信息结果[!]')
ret = mc.get_stats()
print(ret)
except:
print('[-]未发现-发现-memcache未授权访问漏洞。[-]')
pass
print('[+]检测结束-memcache未授权访问漏洞。[+]')
if __name__ == "__main__":
attack()