-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (25 loc) · 844 Bytes
/
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
FROM ubuntu:18.04
MAINTAINER [email protected]
# Create the log file to be able to && tail
ENV TZ=America/Chicago
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update \
&& apt -y install curl wget apt-transport-https netcat ssh samba ruby-dev git make g++ apache2 php \
&& wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb \
&& dpkg -i packages-microsoft-prod.deb \
&& apt update \
&& apt install -y powershell \
&& useradd -ms /bin/bash exfil \
&& cd /home/exfil \
&& git clone https://github.com/iagox86/dnscat2.git \
&& cd dnscat2/server \
&& gem install bundler \
&& bundle install
COPY ./entrypoint.sh /opt/
EXPOSE 22
EXPOSE 80
EXPOSE 139
EXPOSE 443
EXPOSE 445
STOPSIGNAL SIGTERM
CMD /usr/sbin/apache2ctl -D FOREGROUND