diff --git a/Dockerfile b/Dockerfile index daef32d..aa7547b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,11 @@ -FROM golang:1.17-alpine AS build-env +FROM golang:1.21-alpine AS build-env RUN apk update -RUN apk add iptables-dev libpcap-dev +RUN apk add g++ git make iptables-dev libpcap-dev RUN mkdir -p /opt/glutton WORKDIR /opt/glutton -RUN apk add g++ git make - RUN cd $WORKDIR -ENV GO111MODULE=on - -# Fetch dependencies -COPY go.mod ./ -RUN go mod download ADD . . diff --git a/protocols/tcp/ftp.go b/protocols/tcp/ftp.go index 6ca2b8e..1480d9a 100644 --- a/protocols/tcp/ftp.go +++ b/protocols/tcp/ftp.go @@ -25,7 +25,7 @@ type ftpServer struct { conn net.Conn } -func (s *ftpServer) read(logger interfaces.Logger, h interfaces.Honeypot) (string, error) { +func (s *ftpServer) read(_ interfaces.Logger, _ interfaces.Honeypot) (string, error) { msg, err := bufio.NewReader(s.conn).ReadString('\n') if err != nil { return msg, err diff --git a/protocols/tcp/http.go b/protocols/tcp/http.go index 9155186..2cfbfb4 100644 --- a/protocols/tcp/http.go +++ b/protocols/tcp/http.go @@ -88,7 +88,7 @@ func handlePOST(req *http.Request, conn net.Conn, buf *bytes.Buffer, logger inte // scanning attempts for CVE-2019-19781 // based on https://github.com/x1sec/citrix-honeypot/ -func smbHandler(conn net.Conn, r *http.Request) error { +func smbHandler(conn net.Conn, _ *http.Request) error { // if strings.ContainsRune(r.URL.RawPath, '%') { // with IDS evasion." // }