From 2e678190d02a7b0397d82d83dbe3686500855f41 Mon Sep 17 00:00:00 2001 From: Chris Long Date: Fri, 3 Jul 2020 02:10:23 -0700 Subject: [PATCH] Fix velociraptor install on Ubuntu --- Vagrant/bootstrap.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Vagrant/bootstrap.sh b/Vagrant/bootstrap.sh index 330268f..791ae05 100644 --- a/Vagrant/bootstrap.sh +++ b/Vagrant/bootstrap.sh @@ -369,14 +369,15 @@ install_velociraptor() { echo "[$(date +%H:%M:%S)]: The URL for the latest release was extracted as $LATEST_VELOCIRAPTOR_LINUX_URL" echo "[$(date +%H:%M:%S)]: Attempting to download..." wget -P /opt/velociraptor "$LATEST_VELOCIRAPTOR_LINUX_URL" - if [ "$(file velociraptor*linux-amd64 | grep -c 'ELF 64-bit LSB executable')" -eq 1 ]; then + if [ "$(file /opt/velociraptor/velociraptor*linux-amd64 | grep -c 'ELF 64-bit LSB executable')" -eq 1 ]; then echo "[$(date +%H:%M:%S)]: Velociraptor successfully downloaded!" else echo "[$(date +%H:%M:%S)]: Failed to download the latest version of Velociraptor. Please open a DetectionLab issue on Github." return fi - mv velociraptor-*-linux-amd64 velociraptor + cd /opt/velociraptor || exit 1 + mv /opt/velociraptor-*-linux-amd64 velociraptor chmod +x velociraptor cp /vagrant/resources/velociraptor/server.config.yaml /opt/velociraptor echo "[$(date +%H:%M:%S)]: Creating Velociraptor dpkg..."