mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-04-09 13:42:46 +02:00
commit
7be00e4f03
metasploit
11
metasploit/Dockerfile
Normal file
11
metasploit/Dockerfile
Normal 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
15
metasploit/start.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user