> For the complete documentation index, see [llms.txt](https://mw1po.gitbook.io/devsecops/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mw1po.gitbook.io/devsecops/it-security-roles/web-application-security-testing/self-hosted-training-lab.md).

# Self-hosted Training Lab

I created my home penetration testing lab with existing virtual machines from pentester labs <https://pentesterlab.com/exercises> because they are relatively small. You can download the ISO images directly from the web page.

There are more machines available on <https://www.vulnhub.com/>

{% hint style="warning" %}
Once you run one of these machine, run `sudo ifconfig eth0 192.168.x.x` in a terminal to set a new ip address. Also think about setting the network of the VM with the vulnerable web app to host-only.
{% endhint %}

Another option is to install a vulnerable web app on your host machine if you know what you are doing. You don't want to break your host.  You can also install the web apps on a clean virtual machine:

{% content-ref url="/pages/-MYfw4gWyPHEYqsnOyAN" %}
[Vulnerable Web Apps](/devsecops/it-security-roles/web-application-security-testing/self-hosted-training-lab/vulnerable-web-apps.md)
{% endcontent-ref %}


---

# 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://mw1po.gitbook.io/devsecops/it-security-roles/web-application-security-testing/self-hosted-training-lab.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.
