> For the complete documentation index, see [llms.txt](https://ctf.smithsecurity.biz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ctf.smithsecurity.biz/htb-cyber-apocalypse-2023/2023-htb-cyber-apocalypse-challenges/misc-persistence.md).

# Misc - Persistence

Hack the Box Cyber Apocalypse CTF 2023, Persistence Misc Challenge Writeup

The challenge description says that if we request the /flag endpoint, 1 in a 1000 times it will return the flag. This was stupid easy to do with scripting.

<figure><img src="https://2826773145-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1uhiofTFnZvCKEvs4fJk%2Fuploads%2FCqPNfTIsTVOlZNBiZeOU%2FhtbCyberApoc23_Persistance.PNG?alt=media&amp;token=cb40c52c-3906-4904-863c-116e217c4138" alt=""><figcaption><p>Simple Python script to request until it gets the flag</p></figcaption></figure>

PWNED?
