Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update install script for v1.6.x #1270

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions docs/install
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,14 @@ EOF
# Download and Unpack Sliver Server
#

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gh repo clone BishopFox/sliver

ARTIFACTS=$(curl -s "https://api.github.com/repos/BishopFox/sliver/releases/latest" | awk -F '"' '/browser_download_url/{print $4}')
SLIVER_SERVER='sliver-server_linux'
SLIVER_CLIENT='sliver-client_linux'
arch=$(uname -i)
if [[ $arch == x86_64* ]]; then
SLIVER_SERVER='sliver-server_linux-amd64'
SLIVER_CLIENT='sliver-client_linux-amd64'
elif [[ $arch == arm* ]]; then
SLIVER_SERVER='sliver-server_linux-arm64'
SLIVER_CLIENT='sliver-client_linux-arm64'
fi


for URL in $ARTIFACTS
Expand Down Expand Up @@ -159,8 +165,11 @@ chown root:root /etc/systemd/system/sliver.service
chmod 600 /etc/systemd/system/sliver.service
systemctl start sliver

# Enable on boot
systemctl enable sliver

# Generate local configs
echo "Generating operator configs ..."
echo "Generating local user operator configs ..."
mkdir -p /root/.sliver-client/configs
/root/sliver-server operator --name root --lhost localhost --save /root/.sliver-client/configs
chown -R root:root /root/.sliver-client/
Expand Down