-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
52 lines (40 loc) · 1.78 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
FROM kasmweb/core-ubuntu-jammy:1.16.0
USER root
ENV HOME /home/kasm-default-profile
ENV STARTUPDIR /dockerstartup
ENV INST_SCRIPTS $STARTUPDIR/install
ENV NVIDIA_DRIVER_CAPABILITIES=all
WORKDIR $HOME
######### Customize Container Here ###########
RUN apt-get update && apt-get install -y \
hashcat \
nvidia-cuda-toolkit \
unzip \
dconf-cli \
build-essential \
wget
RUN mkdir -p /etc/OpenCL/vendors && \
echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd
RUN wget https://r4.wallpaperflare.com/wallpaper/315/1022/482/weird-cat-scottish-fold-funny-cute-wallpaper-52412270fdc69e2b2a58a2d540e8d9e2.jpg -O /usr/share/backgrounds/bg_default.png
RUN mkdir -p /home/kasm-user/Desktop/netgear && \
wget https://github.com/wpatoolkit/Adj-Noun-Wordlist-Generator/archive/refs/heads/master.zip -O /home/kasm-user/Desktop/netgear/master.zip && \
unzip /home/kasm-user/Desktop/netgear/master.zip -d /home/kasm-user/Desktop/netgear && \
rm /home/kasm-user/Desktop/netgear/master.zip && \
cd /home/kasm-user/Desktop/netgear/Adj-Noun-Wordlist-Generator-master && \
g++ adj.cpp -o adj && \
mv adj /usr/local/bin/adj
RUN wget https://gitlab.com/kalilinux/packages/wordlists/-/raw/kali/master/rockyou.txt.gz?ref_type=heads -O /home/kasm-user/Desktop/rockyou.txt.gz && \
gunzip /home/kasm-user/Desktop/rockyou.txt.gz
# Ensure the wordlist is readable by the user
RUN mkdir -p /usr/local/wordlists && \
mv /home/kasm-user/Desktop/rockyou.txt /usr/local/wordlists/rockyou.txt
# Clean up
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
######### 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