forked from govolution/avet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
91 lines (72 loc) · 2.01 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# v0.1
#
# This Dockerfile encapsulates the Metasploit Framework and Avet.
#
# Also included:
# hasherezade/pe_to_shellcode
# Mr-Un1k0d3r/DKMC
# gentilkiwi/mimikatz
#
# To build this run:
# $ sudo docker build -t avet:v0.1 .
#
# To start this:
# $ sudo docker run -it --net=host --env="DISPLAY" --volume="$HOME/.Xauthority:/root/.Xauthority:rw" -v $(pwd):/tools/avet/output avet:v0.1 /bin/bash
# (alias this)
#
# This mounts the Current Working directory as a Docker Volume and attach it to /avet/output.
# To be save, choose an empty directory to prevent overriding files.
#
# Right now, the only option to configure the build scripts inside the Container
# is using avet.py or with vim/nano/gedit in /avet/build
# You can also install other editors if you like
#
FROM debian:buster
# Preparation
ARG DEBIAN_FRONTEND=noninteractive
RUN dpkg --add-architecture i386 && apt-get update && apt-get install -y \
wget \
curl \
git \
unzip \
jq \
apt-utils \
gnupg2 \
vim \
nano \
gedit \
wine \
wine32 \
python \
python3 \
mingw-w64 \
&& rm -rf /var/lib/apt/lists/*
# For metasploit
RUN echo 'deb http://apt.metasploit.com/ buster main' > /etc/apt/sources.list.d/metasploit-framework.list
RUN wget -O - http://apt.metasploit.com/metasploit-framework.gpg.key | apt-key add -
RUN apt-get update && apt-get install -y \
metasploit-framework \
&& rm -rf /var/lib/apt/lists/*
# For avet
WORKDIR /tools/avet
COPY . .
# For pe2shc
WORKDIR /tools/pe_to_shellcode
RUN curl -s https://api.github.com/repos/hasherezade/pe_to_shellcode/releases/latest \
| jq -r '.assets[].browser_download_url' \
| grep 'pe2shc' \
| wget -i -
# For mimikatz
WORKDIR /tools/mimikatz
RUN curl -s https://api.github.com/repos/gentilkiwi/mimikatz/releases/latest \
| jq -r '.assets[].browser_download_url' \
| grep .'zip' \
| wget -i - \
&& unzip mimikatz_trunk.zip \
&& cp x64/mimikatz.exe /tools/avet/input
# For dkmc
WORKDIR /tools
RUN git clone https://github.com/Mr-Un1k0d3r/DKMC.git
# configure wine during build
RUN winecfg
WORKDIR /tools/avet