# Covenant

## Install Covenant

Ensure Docker is installed first. Run as root

```
cd /opt
git clone --recurse-submodules https://github.com/cobbr/Covenant
cd Covenant/Covenant
docker build -t covenant .
docker run -it -p 7443:7443 -p 8080:8080 -p 4433:4433 --name covenant -v /opt/Covenant/Covenant/Data:/app/Data covenant --username AdminUser --computername 0.0.0.0
```

## First run on SANS Slingshot C2 Matrix Edition 2020.4

```bash
cd /opt/covenant/Covenant
sudo docker build -t covenant .
sudo docker run -it -p 7443:7443 -p 8080:8080 -p 4433:4433 --name covenant -v /opt/covenant/Covenant/Data:/app/Data covenant --username AdminUser --computername 0.0.0.0
```

## Run Covenant

```bash
sudo docker start covenant -ai
```

Open Firefox and navigate to <https://0.0.0.0:7443>

```bash
Username: AdminUser
Password: slingshot
```

For more: <https://github.com/cobbr/Covenant/wiki>


---

# 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/covenant.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.
