import requests for i in range(100): # loop from 0 to 99 url=f"http://this_is_h1dd3n/?secret={i}" response requests.get(url) if "wrong" not in response.text.lower(): # check each response print(f"[+] Found: secret={i}") print(response.text) break # stop after finding the correct one