-
Notifications
You must be signed in to change notification settings - Fork 121
/
Dockerfile
44 lines (34 loc) · 1.38 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
## Golang image for some modules
FROM golang:1.18.1-bullseye as go-build
# Install packages
RUN go install github.com/lc/gau/v2/cmd/gau@latest \
&& go install github.com/tomnomnom/waybackurls@latest\
&& go install github.com/tomnomnom/qsreplace@latest\
&& go install github.com/takshal/freq@latest\
&& cp $GOPATH/bin/* /usr/local/bin/
## Pull official base image
FROM python:3.10-slim-bullseye
# set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Install packages
RUN apt-get update \
&& apt-get -y install --no-install-recommends software-properties-common libpq5 python3-dev musl-dev git\
netcat-traditional golang nmap openvpn freerdp2-x11 tigervnc-viewer apt-utils ca-certificates vim build-essential\
&& rm -rf /var/lib/apt/lists/*
# set work directory
WORKDIR /usr/src/redteam_toolkit/
# install dependencies
RUN pip install --upgrade pip
COPY ./requirements.txt .
RUN pip install -r requirements.txt
# copy entrypoint.sh
COPY ./entrypoint.sh .
RUN sed -i 's/\r$//g' /usr/src/redteam_toolkit/entrypoint.sh
RUN chmod +x /usr/src/redteam_toolkit/entrypoint.sh
# copy project
COPY . .
COPY --from=go-build /usr/local/bin/gau /usr/local/bin/ /usr/local/bin/waybackurls /usr/local/bin/qsreplace /usr/local/bin/freq\
/usr/src/redteam_toolkit/toolkit/scripts/webapp/
# run entrypoint.sh
ENTRYPOINT ["/usr/src/redteam_toolkit/entrypoint.sh"]