[+]Add memcache unauthorized
This commit is contained in:
@@ -108,3 +108,9 @@
|
|||||||
- thinkphp5_x_rce
|
- thinkphp5_x_rce
|
||||||
|
|
||||||
> moon.py -u thinkphp <http://xxx.xxx.xxx.xxx:xxxx>
|
> moon.py -u thinkphp <http://xxx.xxx.xxx.xxx:xxxx>
|
||||||
|
|
||||||
|
## Memcache
|
||||||
|
|
||||||
|
- 未授权访问
|
||||||
|
|
||||||
|
> moon.py -u memcache <http://xxx.xxx.xxx.xxx:xxxx>
|
||||||
|
|||||||
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()
|
||||||
10
moon.py
10
moon.py
@@ -17,6 +17,8 @@ import kindeditor.Main_kindeditor
|
|||||||
import durpal.Main_durpal
|
import durpal.Main_durpal
|
||||||
import bf_dicts.Main_bf
|
import bf_dicts.Main_bf
|
||||||
import thinkphp.Main_thinkphp
|
import thinkphp.Main_thinkphp
|
||||||
|
import memcache_vuln.Main_memcache_vuln
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
||||||
@@ -25,7 +27,7 @@ if __name__ == "__main__":
|
|||||||
print('''
|
print('''
|
||||||
漏洞检测:
|
漏洞检测:
|
||||||
userage: python -u module http://xx.xx.xx.xx:xx
|
userage: python -u module http://xx.xx.xx.xx:xx
|
||||||
modul: tomcat fck weblogic iis docker redis zabbix navigate gatepass
|
modul: tomcat fck weblogic iis docker redis zabbix navigate gatepass kindeditor memcache
|
||||||
IP归属查询:
|
IP归属查询:
|
||||||
userage: python -u ip www.xxxxx.com/xx.xx.xx.xx
|
userage: python -u ip www.xxxxx.com/xx.xx.xx.xx
|
||||||
modul:ip ipq
|
modul:ip ipq
|
||||||
@@ -72,12 +74,14 @@ modul:ip ipq
|
|||||||
durpal.Main_durpal.exec(sys.argv[3])
|
durpal.Main_durpal.exec(sys.argv[3])
|
||||||
elif sys.argv[2] == 'thinkphp':
|
elif sys.argv[2] == 'thinkphp':
|
||||||
thinkphp.Main_thinkphp.exec(sys.argv[3])
|
thinkphp.Main_thinkphp.exec(sys.argv[3])
|
||||||
|
elif sys.argv[2] == 'memcache':
|
||||||
|
memcache_vuln.Main_memcache_vuln.exec(sys.argv[3])
|
||||||
|
|
||||||
else:
|
else:
|
||||||
print('''
|
print('''
|
||||||
漏洞检测:
|
漏洞检测:
|
||||||
userage: python -u module http://xx.xx.xx.xx:xx
|
userage: python -u module http://xx.xx.xx.xx:xx
|
||||||
modul: tomcat fck weblogic iis docker redis zabbix navigate gatepass kindeditor
|
modul: tomcat fck weblogic iis docker redis zabbix navigate gatepass kindeditor memcache
|
||||||
IP归属查询:
|
IP归属查询:
|
||||||
userage: python -u ip www.xxxxx.com/xx.xx.xx.xx
|
userage: python -u ip www.xxxxx.com/xx.xx.xx.xx
|
||||||
modul:ip ipq
|
modul:ip ipq
|
||||||
@@ -90,7 +94,7 @@ modul:ip ipq
|
|||||||
print('''
|
print('''
|
||||||
漏洞检测:
|
漏洞检测:
|
||||||
userage: python -u module http://xx.xx.xx.xx:xx
|
userage: python -u module http://xx.xx.xx.xx:xx
|
||||||
modul: tomcat fck weblogic iis docker redis zabbix navigate gatepass
|
modul: tomcat fck weblogic iis docker redis zabbix navigate gatepass kindeditor memcache
|
||||||
IP归属查询:
|
IP归属查询:
|
||||||
userage: python -u ip www.xxxxx.com/xx.xx.xx.xx
|
userage: python -u ip www.xxxxx.com/xx.xx.xx.xx
|
||||||
modul:ip ipq
|
modul:ip ipq
|
||||||
|
|||||||
Reference in New Issue
Block a user