Add Dockerfile
This commit is contained in:
parent
9a557125c1
commit
9a028e1313
5
.dockerignore
Normal file
5
.dockerignore
Normal file
@ -0,0 +1,5 @@
|
||||
Dockerfile
|
||||
Makefile
|
||||
README.md
|
||||
LICENSE
|
||||
media
|
34
Dockerfile
Normal file
34
Dockerfile
Normal 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"]
|
14
README.md
14
README.md
@ -71,6 +71,20 @@ sudo evilginx
|
||||
|
||||
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
|
||||
|
||||
Grab the package you want from [here](https://github.com/kgretzky/evilginx2/releases) and drop it on your box. Then do:
|
||||
|
Loading…
x
Reference in New Issue
Block a user