-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (35 loc) · 1.63 KB
/
Dockerfile
File metadata and controls
42 lines (35 loc) · 1.63 KB
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
# build: docker build -t attackmate .
FROM kalilinux/kali-rolling
LABEL maintainer="wolfgang.hotwagner@ait.ac.at"
ENV VIRTUAL_ENV=/opt/venv
ARG DEBIAN_FRONTEND=noninteractive
# Essentials
RUN apt-get update && apt-get install -y python3 python3-pip python3-venv libmagic1 nmap nikto ffuf
# For Father rootkit
RUN apt-get update && apt-get install -y gcc libpam0g-dev libgcrypt20-dev nasm build-essential
# For Sliver-Workaround https://github.com/moloch--/sliver-py/issues/28
RUN apt-get update && apt install -y python3-dev libssl-dev git
# For Playwright (Kali packages that satisfy Ubuntu's deps)
RUN apt-get update && apt-get install -y libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libcups2 libxcomposite1 \
libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libgbm1 libxkbcommon0 libpango-1.0-0 libatspi2.0-0 libgtk-3-0 \
libgtk-3-0 libxcursor1 libcairo2 libasound2 libasound2t64 fonts-unifont libjpeg62-turbo libpng16-16 \
libwebp-dev libvpx-dev libicu72 libx264-164 libenchant-2-2
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
ADD . /attackmate
RUN pip install /attackmate
WORKDIR /attackmate
# Playwright
RUN playwright install
# Sliver-Workaround
RUN git clone https://github.com/grpc/grpc \
&& cd grpc \
&& git submodule update --init \
&& pip install -r requirements.txt \
&& pip uninstall --yes protobuf \
&& pip uninstall --yes grpcio-tools \
&& pip install --no-input protobuf==3.20.* \
&& pip install --no-input grpcio-tools \
&& GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=True pip install --use-pep517 --no-input .
RUN cd /attackmate && rm -rf grpc
ENTRYPOINT ["/opt/venv/bin/attackmate"]