ctf-writeup/Cyber Apocalypse 2023 The C.../Persistence
Muhammad Daffa 92bb17cde7 feat: added HTB Cyber Apocalypse 2023 2023-03-23 20:31:35 +07:00
..
images feat: added HTB Cyber Apocalypse 2023 2023-03-23 20:31:35 +07:00
README.md feat: added HTB Cyber Apocalypse 2023 2023-03-23 20:31:35 +07:00

README.md

Persistence

Thousands of years ago, sending a GET request to /flag would grant immense power and wisdom. Now it's broken and usually returns random data, but keep trying, and you might get lucky... Legends say it works once every 1000 tries.

About the Challenge

We have been given a website, and we need to access /flag continously to get the flag

preview

How to Solve?

To solve this I have created a python script to continuously hitting the /flag endpoint and the script will stop if the flag has been found

import requests

url = "http://165.232.100.46:30698/flag"

while True:
    response = requests.get(url)
    if "HTB" in response.text:
        print("Found 'HTB' in response body, stopping...")
        print(response.text)
        break
    print(response.text)

flag

HTB{y0u_h4v3_p0w3rfuL_sCr1pt1ng_ab1lit13S!}