[+]Add memcache unauthorized
This commit is contained in:
11
memcache_vuln/Main_memcache_vuln.py
Normal file
11
memcache_vuln/Main_memcache_vuln.py
Normal file
@@ -0,0 +1,11 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import memcache_vuln.memcache_un
|
||||
|
||||
|
||||
def exec(URL):
|
||||
# memcahce_un.attack(URL)
|
||||
memcache_vuln.memcache_un.attack(URL)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
exec()
|
||||
1
memcache_vuln/__init__.py
Normal file
1
memcache_vuln/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
20
memcache_vuln/memcache_un.py
Normal file
20
memcache_vuln/memcache_un.py
Normal file
@@ -0,0 +1,20 @@
|
||||
# -*- 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()
|
||||
Reference in New Issue
Block a user