forked from helfast/ttyd-heroku
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
67 lines (59 loc) · 1.35 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
FROM tsl0922/musl-cross
RUN git clone --depth=1 https://github.com/tsl0922/ttyd.git /ttyd \
&& cd /ttyd && env BUILD_TARGET=$BUILD_TARGET WITH_SSL=$WITH_SSL ./scripts/cross-build.sh
FROM kalilinux/kali
COPY --from=0 /ttyd/build/ttyd /usr/bin/ttyd
ADD https://github.com/krallin/tini/releases/download/v0.18.0/tini /sbin/tini
RUN chmod +x /sbin/tini
ADD https://raw.githubusercontent.com/rohitsharma45-cyber/scanner/main/scan.py /usr/local/bin/scan.py
RUN chmod +x /usr/local/bin/scan.py
RUN apt-get update; apt-get install -y --no-install-recommends \
python3 \
python3-setuptools \
python3-pip \
zip \
unzip \
p7zip-full \
wget \
nano \
detox \
tmux \
curl \
htop \
net-tools \
sqlmap \
wpscan \
git \
whois \
sslyze \
wapiti \
nmap \
dmitry \
dnsenum \
dnswalk \
dirb \
wafw00f \
whatweb \
nikto \
lbd \
xsser \
fierce \
theharvester \
uniscan \
amass \
subfinder \
skipfish \
binutils \
python3-dev \
qemu-system-x86 \
&& apt-get autoclean \
&& apt-get autoremove \
&& pip3 install pyinstaller \
&& rm -rf /var/lib/apt/lists/*
ADD ./mc /app/mc
RUN chmod +x /app/mc && mv /app/mc /usr/local/bin/
ENV LOGIN_USER admin
ENV LOGIN_PASSWORD admin
ENTRYPOINT ["/sbin/tini", "--"]
#CMD ["ttyd", "bash"]
CMD ttyd --port $PORT --credential $LOGIN_USER:$LOGIN_PASSWORD bash