-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
50 lines (29 loc) · 1.02 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
# latest kali base image
FROM kalilinux/kali-rolling:latest
LABEL "project"="aegis"
LABEL "author"="fr3d"
LABEL "version"="v1.5.0"
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ="America/New_York"
RUN apt-get update && apt-get install sudo -y
RUN groupadd --gid 1000 kali \
&& useradd --home-dir /home/kali --create-home --uid 1000 \
--gid 1000 --shell /bin/bash --skel /dev/null kali
RUN chown -R kali:kali /home/kali/ \
&& echo kali:kali | chpasswd \
&& usermod -aG sudo kali \
&& echo 'kali ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers.d/kali
WORKDIR /home/kali/
USER kali
COPY sources/ /tmp/sources
RUN sudo chown -R kali:kali /tmp/sources/* && sudo chmod +x /tmp/sources/*.sh
RUN /tmp/sources/0-base.sh
RUN /tmp/sources/1-tools.sh
#uncomment for bug bounty usage
#RUN /tmp/sources/2-tools.sh
COPY resources /home/kali/resources/
RUN sudo chown -R kali:kali /home/kali/resources && /tmp/sources/3-home.sh
RUN sudo rm -rf /tmp/sources && sudo rm -rf /home/kali/resources
USER kali
RUN sudo chsh $USER -s /bin/zsh
RUN zsh