Skip to content

Commit 31c8b14

Browse files
committed
Initial commit
Initial commit
0 parents  commit 31c8b14

File tree

7 files changed

+74
-0
lines changed

7 files changed

+74
-0
lines changed

.Xauthority

106 Bytes
Binary file not shown.

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
#
3+
# If you find yourself ignoring temporary files generated by your text editor
4+
# or operating system, you probably want to add a global ignore instead:
5+
# git config --global core.excludesfile ~/.gitignore_global
6+
7+
# Ignore .DS_store file
8+
.DS_Store

.vnc/passwd

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��<�rzX

.vnc/xstartup

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
3+
xrdb $HOME/.Xresources
4+
xsetroot -solid grey
5+
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
6+
#x-window-manager &
7+
# Fix to make GNOME work
8+
export XKL_XMODMAP_DISABLE=1
9+
/etc/X11/Xsession

Dockerfile

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM kalilinux/kali-linux-docker
2+
MAINTAINER Ryan Ringler <[email protected]>
3+
4+
# Add Xwindows configuration
5+
ADD .vnc /root/.vnc
6+
ADD .Xauthority /root/.Xauthority
7+
8+
# Copy startup script
9+
ADD startup.sh /startup.sh
10+
11+
# Configure user for Xwindows
12+
ENV USER root
13+
14+
# Run startup script
15+
RUN apt-get update && \
16+
apt-get install -y usbutils python tightvncserver x11vnc xfce4 && \
17+
git clone https://github.com/novnc/noVNC.git /root/noVNC && \
18+
git clone https://github.com/novnc/websockify.git /root/noVNC/utils/websockify && \
19+
chmod 0755 /startup.sh && \
20+
./startup.sh
21+
22+
# Expose VNC & websockify ports
23+
EXPOSE 5901 6080

LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Ryan Ringler
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

startup.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh
2+
3+
# Start XServer
4+
vncserver :1 &
5+
6+
# Create index.html for VNC server
7+
ln -s /root/noVNC/vnc_auto.html /root/noVNC/index.html
8+
9+
# Start noVNC server
10+
/root/noVNC/utils/launch.sh --vnc localhost:5901 &
11+
12+
# Exit to a shell
13+
/bin/bash

0 commit comments

Comments
 (0)