Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* Update to support new versioning scheme
* Update to v. 3.1.2
  • Loading branch information
cyb3rwr3ck committed Aug 19, 2021
1 parent 6f786eb commit 8b07340
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions app/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
FROM alpine:latest

ARG version=2.2.0
ARG version=3.1.2

# Prepare
RUN apk add ca-certificates wget unzip libc6-compat openssl\
&& wget https://downloads.hak5.org/api/devices/cloudc2-community/firmwares/${version} --no-cache \
&& unzip ${version} \
&& wget https://downloads.hak5.org/api/devices/cloudc2/firmwares/${version}-stable --no-cache \
&& unzip ${version}-stable \
&& mkdir /app /db /cert \
&& mv c2_community-linux-64 /app \
&& rm c2* ${version} \
&& mv c2-${version}_amd64_linux /app/c2_amd64_linux \
&& rm c2* ${version}-stable \
&& chmod +x /app/* \
&& apk del wget unzip

Expand Down
2 changes: 1 addition & 1 deletion app/scripts/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ else
fi

echo [*] "using following settings: "$hostname $https $keyFile $certFile $db $listenip $listenport $reverseProxy $reverseProxyPort $sshport
/app/c2_community-linux-64 $hostname $https $keyFile $certFile $db $listenip $listenport $reverseProxy $reverseProxyPort $sshport
/app/c2_amd64_linux $hostname $https $keyFile $certFile $db $listenip $listenport $reverseProxy $reverseProxyPort $sshport

0 comments on commit 8b07340

Please sign in to comment.