Web reconnaissance
Before any attack, read the site: server headers, page source and robots.txt. Can you find a forgotten backup folder?
Many sites give themselves away without any vulnerability: a header that names the software, a comment developers forgot in the page source, or a robots.txt file that hides a folder from Google but points anyone who reads it straight to it.
This room teaches the first step of every web test: reconnaissance.
0 of 4 · 0 of 55 points
Target machine
Ubuntu 24.04 + nginx (web recon) · Runs for 60 minutes, and you can extend it
Sign in to start your own machine.
Task 1: Start the machine
Press Start machine. Within a minute your own IP address appears. Run every command in this room from the AttackBox (the "Open AttackBox" button) or from your computer over the VPN. Replace IP with your machine's address.
This is an isolated training machine that is yours alone. Using these techniques on systems you have no written permission to test is a crime.
1.1I started the machine and have its address
Task 2: Server headers
Every reply from a web server comes with headers before the page. Some of them reveal which software runs the site, which matters because every program has its own known weaknesses.
curl -I http://IP/
-I asks for the headers only. Look for the Server: line.
2.1Which web server software runs the site?
10Task 3: Page source and robots.txt
Read the page's source, not just what the browser shows. Comments <!-- ... --> are invisible to visitors but sit right there in the code:
curl http://IP/
robots.txt tells search engines what not to index. But it is a public file and anyone can read it:
curl http://IP/robots.txt
Every Disallow: line is a place the owner does not want anyone to see, which makes it the first place you should look.
3.1Which folder does robots.txt hide from search engines? Write it exactly as in the file.
15Task 4: The flag
Open the hidden folder in a browser or with curl (note the trailing /):
curl http://IP/old-backup/
The server lists the folder's files because directory listing (autoindex) is on, a configuration mistake in itself. Open the flag file.
The lesson: robots.txt is not protection. Sensitive folders get deleted or password-protected, not hidden.
On a site without robots.txt, a tool like gobuster tries common folder names:
gobuster dir -u http://IP/ -w /usr/share/dirb/wordlists/common.txt
4.1Open the hidden folder and submit the flag inside it
30