> For the complete documentation index, see [llms.txt](https://capcap-1.gitbook.io/capcap/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://capcap-1.gitbook.io/capcap/readme/ctf-modules/getting-started_mod-2/wf-web-enumeration/gobuster-tiny-walkthrough.md).

# Gobuster tiny Walkthrough

Use this walkthrough to apply the web enumeration techniques and get the flag.

### Goal

Try the web enumeration techniques from this section against the target.

Then use what you find to reach the flag.

{% stepper %}
{% step %}

### Spawn the target and Pwnbox

I spawned the target system and Pwnbox.

<figure><img src="/files/zTZyBcYpa2YgWZHXhc01" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Open the target in the browser

<figure><img src="/files/adcegnHbOKfRfd76ZvFL" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/rtwTbOwIJBy0tGaWTNWr" alt=""><figcaption></figcaption></figure>

Check the IP in the browser.

Then review the page source.
{% endstep %}

{% step %}

### Run Gobuster against the target

I ran Gobuster on `IP:Port` using `SecLists/common.txt`.

<figure><img src="/files/azhWqOsARPhgsabqoMDi" alt=""><figcaption></figcaption></figure>

Gobuster returned `200` for `/index.php` and `/robots.txt`.
{% endstep %}

{% step %}

### Review `robots.txt`

Next, browse to `IP/robots.txt`.

`index.php` is also accessible.

<figure><img src="/files/sGWLsDIuPpEAnvt3TERj" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Open the admin login page

Next, browse to `IP/admin-login-page.php`.

<figure><img src="/files/NaKdcMov7tGsV2kpXRHB" alt=""><figcaption></figcaption></figure>

This reaches the admin panel.

Now press `Ctrl+U` to review the page source.
{% endstep %}

{% step %}

### Find the test credentials

<figure><img src="/files/kfuNpTmufQq1V0vmfz0g" alt=""><figcaption></figcaption></figure>

The source shows test credentials.

Try those credentials on the login form.
{% endstep %}

{% step %}

### Log in and capture the flag

<figure><img src="/files/EAZfxvKngDDgAvHFcnxE" alt=""><figcaption></figcaption></figure>

The login works.

The flag is now visible.
{% endstep %}
{% endstepper %}

### Key takeaway

One short enumeration chain led to the flag:

* Gobuster found useful paths.
* `robots.txt` exposed the next step.
* Page source leaked credentials.


---

# 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, and the optional `goal` query parameter:

```
GET https://capcap-1.gitbook.io/capcap/readme/ctf-modules/getting-started_mod-2/wf-web-enumeration/gobuster-tiny-walkthrough.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
