Files
vulncheck-oss-cve-2023-22527/reverseshell/Dockerfile
T
Jacob Baines cb6d691939 Initial commit
2024-03-05 11:57:38 -05:00

25 lines
466 B
Docker

FROM golang:latest
LABEL author="VulnCheck"
LABEL website="https://vulncheck.com"
# build the binary in a subdirectory
WORKDIR /vulncheck
# add all Go files
COPY *.go ./
# add go.sum and go.mod
COPY go.* ./
# add the Makefile
COPY Makefile .
# change working directory and compile
RUN make compile
# mv the compiled binary to a generic name because our generic makefile appends arch info
RUN mv ./build/* ./exploit
# exec <3
ENTRYPOINT ["/vulncheck/exploit"]