-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-custom-kali.save
85 lines (63 loc) · 2.8 KB
/
docker-custom-kali.save
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
FROM kasmweb/core-kali-rolling:1.13.0
USER root
ENV HOME /home/kasm-default-profile
ENV STARTUPDIR /dockerstartup
ENV INST_SCRIPTS $STARTUPDIR/install
WORKDIR $HOME
######### Customize Container Here ###########
### Upgrade image (very long step)
RUN apt-get update && apt-get upgrade -y
# && apt-get install kali-linux-default -y
### Install sudo
RUN apt-get update \
&& apt-get install -y sudo \
# && useradd -m -d /home/kasm-user -s /bin/bash kasm-user \
# Add kasm-user to sudoers
&& echo 'kasm-user ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers \
&& rm -rf /var/lib/apt/list/*
### Install Kali
COPY ./src/install/kali $INST_SCRIPTS/kali/
RUN bash $INST_SCRIPTS/kali/install_kali.sh && rm -rf $INST_SCRIPTS/kali/
### Install Tools
COPY ./src/install/tools $INST_SCRIPTS/tools/
RUN bash $INST_SCRIPTS/tools/install_tools_deluxe.sh && rm -rf $INST_SCRIPTS/tools/
# Install Tor Browser
COPY ./src/install/torbrowser $INST_SCRIPTS/torbrowser/
RUN bash $INST_SCRIPTS/torbrowser/install_torbrowser.sh && rm -rf $INST_SCRIPTS/torbrowser/
# Install Firefox
COPY ./src/install/firefox $INST_SCRIPTS/firefox/
RUN bash $INST_SCRIPTS/firefox/install_firefox.sh && rm -rf $INST_SCRIPTS/firefox/
# Install Chromium
COPY ./src/install/chromium $INST_SCRIPTS/chromium/
RUN bash $INST_SCRIPTS/chromium/install_chromium.sh && rm -rf $INST_SCRIPTS/chromium/
### Install Visual Studio Code
COPY ./src/install/vs_code $INST_SCRIPTS/vs_code/
RUN bash $INST_SCRIPTS/vs_code/install_vs_code.sh && rm -rf $INST_SCRIPTS/vs_code/
### Install Telegram
COPY ./src/install/telegram $INST_SCRIPTS/telegram/
RUN bash $INST_SCRIPTS/telegram/install_telegram.sh && rm -rf $INST_SCRIPTS/telegram/
### Install Discord
#COPY ./src/install/discord $INST_SCRIPTS/discord/
#RUN bash $INST_SCRIPTS/discord/install_discord.sh && rm -rf $INST_SCRIPTS/discord/
### Install SurfShark VPN
COPY ./src/install/surfshark/ $INST_SCRIPTS/surfshark/
RUN bash $INST_SCRIPTS/surfshark/install_surfshark.sh && rm -rf $INST_SCRIPTS/surfshark/
### Install Remmina
COPY ./src/install/remmina/ $INST_SCRIPTS/remmina/
RUN bash $INST_SCRIPTS/remmina/install_remmina.sh && rm -rf $INST_SCRIPTS/remmina/
### Install RemoteBox
COPY ./src/install/remotebox/ $INST_SCRIPTS/remotebox/
RUN bash $INST_SCRIPTS/remotebox/install_remotebox.sh && rm -rf $INST_SCRIPTS/remotebox/
### Install Burpsuite
RUN apt-get install -y burpsuite
### Install pip
RUN apt-get install -y python3-pip
### Custom XFCE4
sed -i -e "s/\/usr\/share\/backgrounds\/kali-16x9\/default/\/usr\/share\/backgrounds\/kali-16x9\/kali-purple.png/g" /home/kasm-user/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml
######### End Customizations ###########
RUN chown 1000:0 $HOME
RUN $STARTUPDIR/set_user_permission.sh $HOME
ENV HOME /home/kasm-user
WORKDIR $HOME
RUN mkdir -p $HOME && chown -R 1000:0 $HOME
USER 1000