-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
executable file
·64 lines (53 loc) · 1.81 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
# Idea borrowed from https://github.com/jthorpe6/DockerFiles/tree/master/InstantDomainAdmin
# docker run -it --rm -p 8443:8443 -p 80:80 -p 443:443 deathstar
FROM debian:stable
WORKDIR /root/
ENV LC_ALL C.UTF-8
ENV STAGING_KEY=RANDOM
ENV DEBIAN_FRONTEND noninteractive
ENV EMPIRE_USER='empireadmin'
ENV EMPIRE_PASS='Password123!'
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
git \
tmux \
curl \
wget \
sudo \
locales \
lsb-release \
nmap \
python-pip \
python-dev \
python3-pip \
#python3-dev \
python-m2crypto \
apt-transport-https && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
pip install -U cryptography && \
pip install impacket && \
pip install libtmux
RUN git clone --depth=1 https://github.com/byt3bl33d3r/DeathStar /opt/DeathStar && \
cd /opt/DeathStar && \
rm -rf .git && \
pip3 install -r ./requirements.txt
RUN git clone --depth=1 https://github.com/lgandx/Responder /opt/Responder && \
sed -i "s/SMB = On/SMB = Off/g" /opt/Responder/Responder.conf && \
sed -i "s/HTTP = On/HTTP = Off/g" /opt/Responder/Responder.conf && \
sed -i "s/HTTPS = On/HTTPS = Off/g" /opt/Responder/Responder.conf
# Using BC-SECURITY fork now since original project abandoned
RUN git clone --depth=1 https://github.com/BC-SECURITY/Empire.git /opt/Empire && \
cd /opt/Empire/ && \
rm -rf .git && \
cd /opt/Empire/setup/ && \
./install.sh && \
# fix bug for pefile module not found
pip install pefile && \
# installer grabs some more stuff from repo - clean it up!
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY entrypoint.py check-smb-signing.sh /opt/
COPY tmux.conf /root/.tmux.conf
ENTRYPOINT ["python", "/opt/entrypoint.py"]