mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
Metasploit
https://www.kali.org/news/official-kali-linux-docker-images/
This commit is contained in:
parent
df992a15fb
commit
3c4976c5c6
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…
Reference in New Issue
Block a user