From 9f958d2118061a22d45361ef6ad86de5ca9a6acd Mon Sep 17 00:00:00 2001 From: Dan Salmon Date: Sun, 21 Oct 2018 10:56:17 -0500 Subject: [PATCH] Initial commit --- Dockerfile | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ startup.sh | 9 +++++++++ 2 files changed, 63 insertions(+) create mode 100644 Dockerfile create mode 100644 startup.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8f282ee --- /dev/null +++ b/Dockerfile @@ -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 \ No newline at end of file diff --git a/startup.sh b/startup.sh new file mode 100644 index 0000000..ef7793f --- /dev/null +++ b/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 \ No newline at end of file