mirror of
https://github.com/weslambert/velociraptor-docker.git
synced 2025-09-22 21:11:14 +00:00
26 lines
1.7 KiB
Docker
26 lines
1.7 KiB
Docker
FROM ubuntu:22.04
|
|
LABEL version="Velociraptor v0.73.4"
|
|
LABEL description="Velociraptor server in a Docker container"
|
|
LABEL maintainer="Wes Lambert, @therealwlambert"
|
|
COPY ./entrypoint .
|
|
RUN chmod +x entrypoint && \
|
|
apt-get update && \
|
|
apt-get install -y curl wget jq rsync && \
|
|
# Create dirs for Velo binaries
|
|
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 '[.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
|
|
apt-get remove -y --purge wget && \
|
|
apt-get clean
|
|
WORKDIR /velociraptor
|
|
CMD ["/entrypoint"]
|