$ cat writeup.md…
$ cat writeup.md…
tjctf
Task: Web reconnaissance challenge with flag split into 4 parts hidden across HTML source, HTTP headers, and standard web files. Solution: Inspect page source for hidden <p> tag, check robots.txt for disallowed endpoints, and analyze Set-Cookie header from POST form submission.
$ cat /etc/rate-limit
Rate limit reached (20 reads/hour per IP). Showing preview only — full content returns at the next hour roll-over.
Let's go hunt down some treasure! The flag is split into 4 parts. I'll give you the first one right here: tjctf
English summary: A pirate-themed web page at https://treasure-hunt.tjc.tf running on gunicorn (Python WSGI). The flag is split into 4 parts hidden in different standard web locations. The first part is given in the challenge description.
The main page is a pirate-themed site with a ship image and a "Learn More" button (POST form). The server runs gunicorn. Standard web reconnaissance locations need to be checked: HTML source, HTTP headers, robots.txt, and common endpoints.
Key observations:
/extra_info (a red herring with a penguin image)Set-Cookie header with a flag fragmentrobots.txt disallows a /gold-coffer endpointtjctfGiven directly in the challenge text.
_and_Viewing the page source reveals a hidden paragraph tag:
curl -s https://treasure-hunt.tjc.tf
<p hidden>_and_</p>
This element is not rendered by the browser but is visible in the HTML source.
{s1lv3rSubmitting the POST form (clicking "Learn More") and inspecting the response headers:
curl -sv -X POST https://treasure-hunt.tjc.tf 2>&1 | grep -i set-cookie
Set-Cookie: silver_coffer={s1lv3r; Path=/
...
$ grep --similar