added some docker configs

This commit is contained in:
Tobias Kessels
2018-03-09 12:15:57 +01:00
parent 1b249f345e
commit 8cdf666c8f
5 changed files with 25 additions and 0 deletions

8
dockerfiles/build_firefox.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
docker build -f firefox.dockerfile . -t firefox
docker run -d --rm -p 5900:5900 --name firefox_vnc -e HOME=/ firefox x11vnc -forever -create
sleep 5
vncviewer localhost
docker stop firefox_vnc

2
dockerfiles/build_kali.sh Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
docker build -f kali.dockerfile . -t kali

View File

@@ -0,0 +1,6 @@
FROM ubuntu
# Make sure the package repository is up to date
#RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update && apt-get install -y x11vnc xvfb firefox
RUN mkdir ~/.vnc && x11vnc -storepasswd 1234 ~/.vnc/passwd
RUN bash -c 'echo "firefox" >> /.bashrc'

View File

@@ -0,0 +1,8 @@
FROM kalilinux/kali-linux-docker
RUN apt update && \
apt install -y nmap \
mc \
neofetch \
&& \
rm -rf /var/cache/apt
CMD /bin/bash