Add Dockerfile

This commit is contained in:
Nicklaus McClendon 2018-07-31 20:27:38 -04:00
parent 9a557125c1
commit 9a028e1313
No known key found for this signature in database
GPG Key ID: B972DCD093E03256
3 changed files with 53 additions and 0 deletions

5
.dockerignore Normal file
View File

@ -0,0 +1,5 @@
Dockerfile
Makefile
README.md
LICENSE
media

34
Dockerfile Normal file
View File

@ -0,0 +1,34 @@
FROM golang:1.10.3-alpine AS build
RUN apk add --update \
git \
&& rm -rf /var/cache/apk/*
RUN wget -O /usr/local/bin/dep https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 && chmod +x /usr/local/bin/dep
WORKDIR /go/src/github.com/kgretzky/evilginx2
COPY Gopkg.toml Gopkg.lock ./
RUN dep ensure -vendor-only
COPY . /go/src/github.com/kgretzky/evilginx2
RUN go build -o ./bin/evilginx main.go
FROM alpine:3.8
RUN apk add --update \
ca-certificates \
&& rm -rf /var/cache/apk/*
WORKDIR /app
COPY --from=build /go/src/github.com/kgretzky/evilginx2/bin/evilginx /app/evilginx
COPY ./phishlets/*.yaml /app/phishlets/
VOLUME ["/app/phishlets/"]
EXPOSE 443 80 53/udp
ENTRYPOINT ["/app/evilginx"]

View File

@ -71,6 +71,20 @@ sudo evilginx
Instructions above can also be used to update **evilginx2** to the latest version. Instructions above can also be used to update **evilginx2** to the latest version.
### Installing with Docker
You can launch **evilginx2** from within Docker. First build the container:
```
docker build . -t evilginx2
```
Then you can run the container:
```
docker run -it -p 53:53/udp -p 80:80 -p 443:443 evilginx2
```
Phishlets are loaded within the container at `/app/phishlets`, which can be mounted as a volume for configuration.
#### Installing from precompiled binary packages #### Installing from precompiled binary packages
Grab the package you want from [here](https://github.com/kgretzky/evilginx2/releases) and drop it on your box. Then do: Grab the package you want from [here](https://github.com/kgretzky/evilginx2/releases) and drop it on your box. Then do: