Detection of directory listing / auto-indexing exposure where the server returns a browsable file index instead of a document, leaking file names, backups and source. Tier 1. Use when fuzzing reveals index-like pages or on any authorized web target.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Dir Listing?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-dir-listing)
---
name: dir-listing
description: Detection of directory listing / auto-indexing exposure where the server returns a browsable file index instead of a document, leaking file names, backups and source. Tier 1. Use when fuzzing reveals index-like pages or on any authorized web target.
---
# Directory Listing / Auto-Indexing Exposure
Auto-indexing turns a folder into a file browser, leaking names of backups, source, configs and uploads that were never meant to be enumerable.
## Trigger phrases
`directory listing, autoindex, index of, open directory, browsable directory, apache indexes, file index`
## Method
1. Probe directories (from `content-discovery`, crawl, and `robots.txt`/`sitemap.xml` disallows) by requesting the path with a trailing `/`.
2. Fingerprint listings in the body:
- Apache `mod_autoindex`: `<title>Index of /...` + "Parent Directory".
- Nginx `autoindex on`: `<h1>Index of /</h1>` pre-formatted.
- IIS `Directory Browsing`: date/size columns, `[To Parent Directory]`.
- Tomcat/Jetty/Node (serve-index) default listings.
3. Bulk check: `ffuf -u https://T/FUZZ/ -w dirs.txt -mr "Index of|Directory Listing|Parent Directory"` or `feroxbuster` then grep responses.
4. Target high-value dirs: `/backup/ /uploads/ /files/ /tmp/ /logs/ /.git/ /includes/ /config/ /assets/ /old/ /test/ /api/`.
5. When listed, recurse the exposed tree and pull every interesting file (source, `.sql`, `.zip`, `.env`, keys).
## Modern / rare techniques
- Trailing-dot/encoded path (`/dir%2f`, `/dir/.`) can trigger listing where `/dir` redirects.
- `?C=M;O=D` sort params confirm Apache autoindex and order newest-first (fresh backups).
- Framework static mounts (Express `serve-index`, Spring static) sometimes index only sub-paths.
## Escalation / chaining
Listed files → `source-disclosure`, `secrets-disclosure`, `exposed-files`, `script-source-control`, `exposed-product-files`. A browsable upload dir + upload feature → `web-file-upload`.
## Backend & tooling
Kali/HexStrike + curl/ffuf; headless browser to render JS-built pseudo-indexes. Burp proxy if available.
## Verification (background, before reporting)
Re-fetch independently and confirm the response is a real file index (actual child links resolve), not a styled 404 or app route. Pull at least one listed file to prove reachability.
## Evidence
URL of the indexed dir, screenshot/body excerpt, sensitive files revealed, impact + remediation (`Options -Indexes`, `autoindex off`, disable IIS directory browsing).