Skip to content

Linux Install Script

Joe edited this page Jan 3, 2023 · 8 revisions

This script will install the latest version of Sliver as a systemd service, installs Windows cross-compiler dependencies (mingw), and setup multiplayer for the all local users. After running the script connect locally by running sliver.

https://github.com/BishopFox/sliver/blob/master/docs/install

This script should work on Kali, Ubuntu, and RHEL (CentOS, etc) distributions of Linux.

⚠️ OPSEC: By default the Linux install script will bind multiplayer listener to :31337 i.e. all interfaces. Ensure your firewalls are properly configured if this is a concern, or reconfigure the server to bind to localhost. Multiplayer is implemented using mTLS and per-operator bearer tokens, so this doesn't present a security problem (notwithstanding bugs in our implementation), but publicly exposing your multiplayer listener will make it trivial to identify what the server is running.

One Liner

curl https://sliver.sh/install|sudo bash
  • Installs server binary to /root/sliver-server
  • Installs mingw
  • Runs the server in daemon mode using systemd
  • Installs client to /usr/local/bin/sliver
  • Generates multiplayer configurations for all users with a /home directory

Systemd Service

The following systemd configuration is used:

[Unit]
Description=Sliver
After=network.target
StartLimitIntervalSec=0

[Service]
Type=simple
Restart=on-failure
RestartSec=3
User=root
ExecStart=/root/sliver-server daemon

[Install]
WantedBy=multi-user.target
Clone this wiki locally