Natas Level 2
Natas Level 2 — notice that the page loads a resource you can follow, and discover what an exposed directory listing reveals.
Table of Contents
Source: This content is aggregated from overthewire (MIT). Visit the original repository for the latest version.
Username: natas2
URL: http://natas2.natas.labs.overthewire.org
Study guide
Level map: sign in as natas2 and find the password for natas3.
What this level teaches
How to enumerate the resources a page loads and explore the directories they live in.
Key ideas
- A page references other files. Images, scripts and stylesheets each have a URL, and those URLs reveal folder names.
- Directory listing. If a web server has “autoindex” enabled and a directory has no index page, visiting it lists every file inside.
- Walking up the path. Removing the last part of a URL moves you to the parent folder, a basic reconnaissance move.
How to approach it
- Read the source and list every resource the page references.
- Visit the folder that holds a resource and see what the server shows you.
How developers prevent it
Disable directory listings, keep sensitive files out of the web root, and treat every file reachable by URL as public.