forked from docker/browser-kali
Initial commit
This commit is contained in:
commit
9f958d2118
|
|
@ -0,0 +1,54 @@
|
|||
FROM kalilinux/kali-linux-docker
|
||||
|
||||
ARG BUILD_DATE
|
||||
ARG VERSION
|
||||
ARG VCS_URL
|
||||
ARG VCS_REF
|
||||
|
||||
LABEL org.label-schema.build-date=$BUILD_DATE \
|
||||
org.label-schema.vcs-url=$VCS_URL \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.name='Kali Linux' \
|
||||
org.label-schema.description='Official Kali Linux docker image' \
|
||||
org.label-schema.usage='https://www.kali.org/news/official-kali-linux-docker-images/' \
|
||||
org.label-schema.url='https://www.kali.org/' \
|
||||
org.label-schema.vendor='Offensive Security' \
|
||||
org.label-schema.schema-version='1.0' \
|
||||
org.label-schema.docker.cmd='docker run --rm kalilinux/kali-linux-docker' \
|
||||
org.label-schema.docker.cmd.devel='docker run --rm -ti kalilinux/kali-linux-docker' \
|
||||
org.label-schema.docker.debug='docker logs $CONTAINER' \
|
||||
io.github.offensive-security.docker.dockerfile="Dockerfile" \
|
||||
io.github.offensive-security.license="GPLv3"
|
||||
|
||||
RUN echo "deb http://http.kali.org/kali kali-rolling main contrib non-free" > /etc/apt/sources.list && \
|
||||
echo "deb-src http://http.kali.org/kali kali-rolling main contrib non-free" >> /etc/apt/sources.list
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
RUN apt-get -yqq update && \
|
||||
apt-get install -y \
|
||||
net-tools \
|
||||
xfce4 \
|
||||
git \
|
||||
x11vnc \
|
||||
xvfb \
|
||||
wget \
|
||||
python \
|
||||
python-numpy \
|
||||
unzip \
|
||||
menu && \
|
||||
cd /root && git clone https://github.com/kanaka/noVNC.git && \
|
||||
cd noVNC/utils && git clone https://github.com/kanaka/websockify websockify && \
|
||||
cd /root
|
||||
ADD startup.sh /startup.sh
|
||||
|
||||
RUN chmod 0755 /startup.sh && \
|
||||
apt-get autoremove -y && \
|
||||
apt-get clean -y && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
#The Kali Docker Image Is Out Of Date. : (
|
||||
#RUN apt-get update -y && apt-get dist-upgrade -y
|
||||
|
||||
CMD /startup.sh
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
export DISPLAY=:1
|
||||
Xvfb :1 -screen 0 1600x900x16 &
|
||||
sleep 5
|
||||
#openbox-session&
|
||||
xfce4-session&
|
||||
x11vnc -display :1 -nopw -listen localhost -xkb -ncache 10 -ncache_cr -forever &
|
||||
cd /root/noVNC && ln -s vnc_auto.html index.html && ./utils/launch.sh --vnc localhost:5900
|
||||
Loading…
Reference in New Issue