Skip to content

Commit

Permalink
cleanup docker
Browse files Browse the repository at this point in the history
  • Loading branch information
glaslos committed May 7, 2024
1 parent b08e9f8 commit 313ef20
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
11 changes: 2 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 . .

Expand Down
2 changes: 1 addition & 1 deletion protocols/tcp/ftp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion protocols/tcp/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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."
// }
Expand Down

0 comments on commit 313ef20

Please sign in to comment.