Merge pull request #133 from koep/metasploit

Metasploit
This commit is contained in:
Jess Frazelle 2016-04-26 09:39:42 -07:00
commit 7be00e4f03
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