From 96896a7442feaeb3fbdb1eb0ee40e0802d664742 Mon Sep 17 00:00:00 2001 From: moloch-- <875022+moloch--@users.noreply.github.com> Date: Fri, 10 Nov 2023 18:33:10 -0700 Subject: [PATCH 1/2] Go 1.21.4 --- Dockerfile | 17 +++-------------- go-assets.sh | 4 ++-- 2 files changed, 5 insertions(+), 16 deletions(-) diff --git a/Dockerfile b/Dockerfile index d9a2409ee8..5687fdb307 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.21.3 +FROM --platform=linux/amd64 golang:1.21.4 # # IMPORTANT: This Dockerfile is used for testing, I do not recommend deploying @@ -6,10 +6,6 @@ FROM golang:1.21.3 # a Docker deployment this is probably a good place to start. # -ENV PROTOC_VER 21.12 -ENV PROTOC_GEN_GO_VER v1.27.1 -ENV GRPC_GO v1.2.0 - # Base packages RUN apt-get update --fix-missing && apt-get -y install \ git build-essential zlib1g zlib1g-dev \ @@ -35,21 +31,14 @@ RUN mkdir -p /home/sliver/ && chown -R sliver:sliver /home/sliver RUN curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall \ && chmod 755 msfinstall \ && ./msfinstall -RUN mkdir -p ~/.msf4/ && touch ~/.msf4/initial_setup_complete \ +RUN mkdir -p ~/.msf4/ \ + && touch ~/.msf4/initial_setup_complete \ && su -l sliver -c 'mkdir -p ~/.msf4/ && touch ~/.msf4/initial_setup_complete' # # > Sliver # -# Protoc -# WORKDIR /tmp -# RUN wget -O protoc-${PROTOC_VER}-linux-x86_64.zip https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VER}/protoc-${PROTOC_VER}-linux-x86_64.zip \ -# && unzip protoc-${PROTOC_VER}-linux-x86_64.zip \ -# && cp -vv ./bin/protoc /usr/local/bin -# RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@${PROTOC_GEN_GO_VER} \ -# && go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@${GRPC_GO} - # Go assets WORKDIR /go/src/github.com/bishopfox/sliver ADD . /go/src/github.com/bishopfox/sliver/ diff --git a/go-assets.sh b/go-assets.sh index 367c2ab8f2..407c8951ba 100755 --- a/go-assets.sh +++ b/go-assets.sh @@ -20,8 +20,8 @@ set -e # Creates the static go asset archives -GO_VER="1.21.3" -GARBLE_VER="1.21.3" +GO_VER="1.21.4" +GARBLE_VER="1.21.4" SGN_VER="0.0.3" BLOAT_FILES="AUTHORS CONTRIBUTORS PATENTS VERSION favicon.ico robots.txt SECURITY.md CONTRIBUTING.md LICENSE README.md ./doc ./test ./api ./misc" From 56b84e44f3576f0d248f9958dc1eafeebd7165ba Mon Sep 17 00:00:00 2001 From: moloch-- <875022+moloch--@users.noreply.github.com> Date: Fri, 10 Nov 2023 18:36:40 -0700 Subject: [PATCH 2/2] Update makefile to require go 1.21.x --- Dockerfile | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5687fdb307..11c22cc4fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,7 +33,7 @@ RUN curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/conf && ./msfinstall RUN mkdir -p ~/.msf4/ \ && touch ~/.msf4/initial_setup_complete \ - && su -l sliver -c 'mkdir -p ~/.msf4/ && touch ~/.msf4/initial_setup_complete' + && su -l sliver -c 'mkdir -p ~/.msf4/ && touch ~/.msf4/initial_setup_complete' # # > Sliver diff --git a/Makefile b/Makefile index 3711c6c847..c7ef9a5c45 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ GO_VERSION = $(shell $(GO) version) GO_MAJOR_VERSION = $(shell $(GO) version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f1) GO_MINOR_VERSION = $(shell $(GO) version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f2) MIN_SUPPORTED_GO_MAJOR_VERSION = 1 -MIN_SUPPORTED_GO_MINOR_VERSION = 20 +MIN_SUPPORTED_GO_MINOR_VERSION = 21 GO_VERSION_VALIDATION_ERR_MSG = Golang version is not supported, please update to at least $(MIN_SUPPORTED_GO_MAJOR_VERSION).$(MIN_SUPPORTED_GO_MINOR_VERSION) VERSION ?= $(shell git describe --abbrev=0)