Skip to content

Instantly share code, notes, and snippets.

@shortstack
Created August 5, 2024 15:43
Show Gist options
  • Save shortstack/df5de8c81038490e0c38e8189606fa74 to your computer and use it in GitHub Desktop.
Save shortstack/df5de8c81038490e0c38e8189606fa74 to your computer and use it in GitHub Desktop.
systemctl stop velociraptor_server
rm -r /opt/vr_data/hunts/*
rm -r /opt/vr_data/hunt_index/*
rm -r /opt/vr_data/clients/*
rm -r /opt/vr_data/client_info/snapshot.json*
curl https://storage.googleapis.com/thvr-cdn/stacking_hunts.zip --output /opt/stacking_hunts.zip
unzip /opt/stacking_hunts.zip -d /opt/vr_data
chown velociraptor:velociraptor -R /opt/vr_data/hunts
chown velociraptor:velociraptor -R /opt/vr_data/hunt_index
chown velociraptor:velociraptor -R /opt/vr_data/clients
systemctl start velociraptor_server
systemctl status velociraptor_server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment