> For the complete documentation index, see [llms.txt](https://ptplaybook.mfbktech.academy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ptplaybook.mfbktech.academy/tools/dirb.md).

# Dirb

Dirb is a popular web content scanner designed to discover hidden directories and files on web servers. It's commonly used by penetration testers to identify potential entry points and sensitive information exposed on web applications. This guide provides an overview of how to use Dirb effectively for web content enumeration during penetration testing.

**Prerequisites:**

1. Basic understanding of web technologies and HTTP protocol.
2. Dirb installed on your system. You can download it from [Dirb's GitHub repository](https://github.com/v0re/dirb).

**How to use:**

1. **Identify Target Web Application:**
   * Determine the URL of the web application you want to perform content enumeration on.
2. **Perform Basic Scan:**
   * Open your terminal or command prompt.
   * Run Dirb with the target URL.
   * Example command:&#x20;

```
dirb <target_URL>
```

* Replace `<target_URL>` with the URL of the target web application.

1. **Output Results to File:**
   * Use the `-o` flag to specify the output file for the scan results.
   * Example command:&#x20;

```
dirb <target_URL> -o scan_results.txt
```

* This command saves the scan results to a file named `scan_results.txt`.

**Perform Recursive Scan:**

* Use the `-r` flag to enable recursive scanning, allowing Dirb to explore subdirectories within the discovered directories.
* Example command:

```
dirb <target_URL> -r
```

* This command instructs Dirb to continue scanning recursively.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://ptplaybook.mfbktech.academy/tools/dirb.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.
