Christian Koep 2016-04-26 10:19:48 +02:00
parent df992a15fb
commit 3c4976c5c6
No known key found for this signature in database
GPG Key ID: 889970BE12955732
2 changed files with 26 additions and 0 deletions

11
metasploit/Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM kalilinux/kali-linux-docker
MAINTAINER Christian Koep <christian.koep@fom-net.de>
RUN apt-get update && apt-get install -y \
metasploit-framework \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
COPY start.sh /start.sh
ENTRYPOINT [ "/start.sh" ]

15
metasploit/start.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
set -e
if ! [ -e "/var/run/postgresql/*.pid" ]
then
/etc/init.d/postgresql start
fi
if ! [ -e "/usr/share/metasploit-framework/config/database.yml" ]
then
/usr/bin/msfdb init
fi
/usr/bin/msfdb start
/usr/bin/msfconsole