mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-28 09:08:50 +02:00
add metasploit-arm
This commit is contained in:
parent
29610e4667
commit
876e253f7d
59
metasploit/arm/Dockerfile
Normal file
59
metasploit/arm/Dockerfile
Normal file
@ -0,0 +1,59 @@
|
||||
#
|
||||
# Dockerfile for metasploit-arm
|
||||
#
|
||||
|
||||
FROM easypi/alpine-arm
|
||||
MAINTAINER EasyPi Software Foundation
|
||||
|
||||
ENV MSF_VERSION 4.16.13
|
||||
ENV APP_HOME /usr/src/metasploit-framework/
|
||||
ENV MSF_USER msf
|
||||
ENV NMAP_PRIVILEGED=""
|
||||
|
||||
ARG BUNDLER_ARGS="--jobs=8 --without development test coverage"
|
||||
WORKDIR $APP_HOME
|
||||
|
||||
RUN set -xe \
|
||||
&& apk update \
|
||||
&& apk add libcap \
|
||||
ncurses \
|
||||
nmap \
|
||||
nmap-nselibs \
|
||||
nmap-scripts \
|
||||
postgresql-libs \
|
||||
ruby \
|
||||
sqlite-libs \
|
||||
&& apk add --virtual .ruby-builddeps \
|
||||
autoconf \
|
||||
bison \
|
||||
build-base \
|
||||
curl \
|
||||
git \
|
||||
libpcap-dev \
|
||||
libressl-dev \
|
||||
libxml2-dev \
|
||||
libxslt-dev \
|
||||
ncurses-dev \
|
||||
postgresql-dev \
|
||||
readline-dev \
|
||||
ruby-dev \
|
||||
sqlite-dev \
|
||||
tar \
|
||||
yaml-dev \
|
||||
zlib-dev \
|
||||
&& curl -sSL https://github.com/rapid7/metasploit-framework/archive/$MSF_VERSION.tar.gz | tar xz --strip 1 \
|
||||
&& echo "gem: --no-ri --no-rdoc" > /etc/gemrc \
|
||||
&& gem update --system \
|
||||
&& gem install bundler \
|
||||
&& bundle install --system $BUNDLER_ARGS \
|
||||
&& apk del .ruby-builddeps \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
RUN set -xe \
|
||||
&& adduser -g msfconsole -D $MSF_USER \
|
||||
&& setcap cap_net_raw,cap_net_bind_service=+eip /usr/bin/ruby \
|
||||
&& setcap cap_net_raw,cap_net_bind_service=+eip /usr/bin/nmap
|
||||
|
||||
USER $MSF_USER
|
||||
|
||||
CMD ["./msfconsole", "-r", "docker/msfconsole.rc"]
|
22
metasploit/arm/docker-compose.yml
Normal file
22
metasploit/arm/docker-compose.yml
Normal file
@ -0,0 +1,22 @@
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
ms:
|
||||
image: easypi/metasploit-arm
|
||||
environment:
|
||||
DATABASE_URL: postgres://postgres@db:5432/msf
|
||||
links:
|
||||
- db
|
||||
ports:
|
||||
- 4444:4444
|
||||
volumes:
|
||||
- $HOME/.msf4:/home/msf/.msf4
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
db:
|
||||
image: easypi/postgres-arm
|
||||
volumes:
|
||||
- pg_data:/var/lib/postgresql/data
|
||||
|
||||
volumes:
|
||||
pg_data:
|
||||
driver: local
|
Loading…
Reference in New Issue
Block a user