Dev.to Security 🔐 Cybersecurity 👁 2 📖 1 min read

PicoCTF where are the robots Writeup — Find a Hidden Page via robots.txt

Visit /robots.txt on the challenge site. It has a Disallow line pointing to a page with a random name — open that page and the flag is on it. Platform: picoGym Verified against: siunam's writeup Category: Web Exploi

Visit /robots.txt on the challenge site. It has a Disallow line pointing to a page with a random name — open that page and the flag is on it.

  • Platform: picoGym
  • Verified against: siunam's writeup
  • Category: Web Exploitation
  • Difficulty: Beginner
  • Tools: browsercurl

Challenge description

The challenge site only says "Where are the robots?" — a pointer to the one file every website keeps for robots.

Provided: a link to a small website

Step 1 — Read robots.txt

robots.txt sits at the root of a site and tells search-engine crawlers which paths not to index. Add it to the challenge URL:

$ curl http://CHALLENGE/robots.txt
User-agent: *
Disallow: /[random].html

The file is only a request to well-behaved crawlers — it doesn't protect anything. And by listing the path, it tells everyone exactly where to look.

Step 2 — Open the disallowed page

Visit the path from the Disallow line:

$ curl http://CHALLENGE/[random].html

The page says you guessed what the robots were hiding and shows the flag.

🚩 picoCTF{ flag intentionally hidden }

The flag is deliberately hidden — follow the method, you've earned it. 💪

Key takeaways

robots.txt is one of the first things to check on any web target:

  • robots.txt is public and often reveals paths the owner doesn't want indexed
  • Disallow is a suggestion for crawlers, not access control
  • Other common recon files: sitemap.xml, .git/, /.well-known/

Originally published on CTFdojo — join the CTFdojo Discord to discuss writeups and get notified about new ones.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.