From 8b87da02e0db75a29f07fa5c08bd8498dfb9962a Mon Sep 17 00:00:00 2001 From: weslambert Date: Wed, 8 May 2024 23:48:45 -0400 Subject: [PATCH 1/2] Update URLs --- Dockerfile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 85b42ef..5d0f3f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,17 +10,16 @@ RUN chmod +x entrypoint && \ mkdir -p /opt/velociraptor && \ for i in linux mac windows; do mkdir -p /opt/velociraptor/$i; done && \ # Get Velox binaries - WINDOWS_EXE=$(curl -s https://api.github.com/repos/velocidex/velociraptor/releases/latest | jq -r 'limit(6 ; ( .assets[].browser_download_url | select ( contains("windows-amd64.exe") )))' | grep -vE '.sig' | tail -1) && \ - WINDOWS_MSI=$(curl -s https://api.github.com/repos/velocidex/velociraptor/releases/latest | jq -r 'limit(6 ; ( .assets[].browser_download_url | select ( contains("windows-amd64.msi") )))' | grep -vE '.sig' | tail -1) && \ - LINUX_BIN=$(curl -s https://api.github.com/repos/velocidex/velociraptor/releases/latest | jq -r 'limit(6 ; ( .assets[].browser_download_url | select ( contains("linux-amd64") )))' | grep -vE "musl|sig" | sort | tail -1) && \ - MAC_BIN=$(curl -s https://api.github.com/repos/velocidex/velociraptor/releases/latest | jq -r 'limit(1 ; ( .assets[].browser_download_url | select ( contains("darwin-amd64") )))' | grep -vE '.sig' | tail -1) && \ + WINDOWS_EXE=$(curl -s https://api.github.com/repos/velocidex/velociraptor/releases/latest | jq -r '[.assets | sort_by(.created_at) | reverse | .[] | .browser_download_url | select(test("windows-amd64.exe$"))][0]') && \ + WINDOWS_MSI=$(curl -s https://api.github.com/repos/velocidex/velociraptor/releases/latest | jq -r '[.assets | sort_by(.created_at) | reverse | .[] | .browser_download_url | select(test("windows-amd64.msi$"))][0]') && \ + LINUX_BIN=$(curl -s https://api.github.com/repos/velocidex/velociraptor/releases/latest | jq -r '[.assets | sort_by(.created_at) | reverse | .[] | .browser_download_url | select(test("linux-amd64$"))][0]') && \ + MAC_BIN=$(curl -s https://api.github.com/repos/velocidex/velociraptor/releases/latest | jq -r '[.assets | sort_by(.created_at) | reverse | .[] | .browser_download_url | select(test("darwin-amd64$"))][0]') && \ wget -O /opt/velociraptor/linux/velociraptor "$LINUX_BIN" && \ wget -O /opt/velociraptor/mac/velociraptor_client "$MAC_BIN" && \ wget -O /opt/velociraptor/windows/velociraptor_client.exe "$WINDOWS_EXE" && \ wget -O /opt/velociraptor/windows/velociraptor_client.msi "$WINDOWS_MSI" && \ - # Clean up + # Clean up apt-get remove -y --purge wget && \ apt-get clean -WORKDIR /velociraptor +WORKDIR /velociraptor CMD ["/entrypoint"] - From 37dcd0a3276bfd3b5faacc98bc1d33f9435ec274 Mon Sep 17 00:00:00 2001 From: weslambert Date: Wed, 8 May 2024 23:50:05 -0400 Subject: [PATCH 2/2] Update version --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5d0f3f8..c79384f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM ubuntu:22.04 -LABEL version="Velociraptor v0.7.0" +LABEL version="Velociraptor v0.72.0-1" LABEL description="Velociraptor server in a Docker container" LABEL maintainer="Wes Lambert, @therealwlambert" COPY ./entrypoint .