Created
January 5, 2017 14:50
-
-
Save leonjza/747257b4fef98aaa0a009d9a0f56792c to your computer and use it in GitHub Desktop.
Metasploit Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:2.3 | |
MAINTAINER Leon Jacobs <[email protected]> | |
# avoid debconf and initrd | |
ENV DEBIAN_FRONTEND noninteractive | |
ENV INITRD No | |
RUN apt-get update && \ | |
apt-get install -y --no-install-recommends \ | |
# metasploit dev dependencies to compile ruby extensions | |
build-essential \ | |
libreadline-dev \ | |
libssl-dev \ | |
libpq5 \ | |
libpq-dev \ | |
libsqlite3-dev \ | |
libpcap-dev \ | |
zlib1g-dev \ | |
libxml2-dev \ | |
libxslt1-dev \ | |
libyaml-dev \ | |
zlib1g-dev \ | |
# other dependencies | |
git \ | |
vim && \ | |
apt-get clean && \ | |
rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* | |
RUN git clone https://github.com/rapid7/metasploit-framework.git /metasploit-framework && \ | |
cd /metasploit-framework && \ | |
bundle install | |
EXPOSE 80 | |
EXPOSE 443 | |
EXPOSE 8443 | |
EXPOSE 4444 | |
EXPOSE 4445 | |
CMD ["/metasploit-framework/msfconsole"] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment