# Directory Scanning

```bash
# Normal usage
gobuster dir -u http://10.10.10.100 -w /usr/share/wordlists/dirbuster/directory-list-lowercase-2.3-medium.txt
gobuster dir -u http://10.10.10.100 -w /usr/share/SecLists/Discovery/Web-Content/common.txt
gobuster dir -u http://10.10.10.100 -w /usr/share/SecLists/Discovery/Web-Content/raft-large-directories-lowercase.txt
ffuf -c -w /usr/share/wordlists/seclists/Discovery/Web-Content/common.txt -u http://10.10.10.100/FUZZ -t 100

# PHP file extensions
gobuster dir -u http://10.10.10.100 -w /usr/share/SecLists/Discovery/Web-Content/common.txt -x php

# Pattern Scanning
# Pattern file contains -> {GOBUSTER}/v2
gobuster dir -u http://10.10.10.100 -p pattern -w /usr/share/SecLists/Discovery/Web-Content/common.txt

# Dirb
dirb http://10.10.10.100:8080

# ffuf
# -fs 4317 -> Remove content sizes of 4317
# -ac -> Use -ac for automatic calibration to minimize false positives
ffuf -w /usr/share/wordlists/seclists/Discovery/Web-Content/DirBuster-2007_directory-list-lowercase-2.3-big.txt -u http://bth.lab/FUZZ -ac -fs 4317
```

### Common Wordlists to try

* `/usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt`
* `/usr/share/seclists/Discovery/Web-Content/DirBuster-2007_directory-list-2.3-big.txt`
* `/usr/share/seclists/Discovery/Web-Content/common.txt`
* `/usr/share/seclists/Discovery/Web-Content/raft-large-directories.txt`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gokulkarthik.gitbook.io/pentesting-checklist/enumeration/directory-scanning.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
