File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
- FROM ruby:2.3 -alpine
1
+ FROM ruby:2.4.1 -alpine
2
2
MAINTAINER Rapid7
3
3
4
4
ARG BUNDLER_ARGS="--jobs=8 --without development test coverage"
5
5
ENV APP_HOME /usr/src/metasploit-framework/
6
6
ENV MSF_USER msf
7
+ ENV NMAP_PRIVILEGED=""
7
8
WORKDIR $APP_HOME
8
9
9
10
COPY Gemfile* m* Rakefile $APP_HOME
@@ -13,6 +14,8 @@ RUN apk update && \
13
14
apk add \
14
15
sqlite-libs \
15
16
nmap \
17
+ nmap-scripts \
18
+ nmap-nselibs \
16
19
postgresql-libs \
17
20
# needed as long as metasploit-framework.gemspec contains a 'git ls'
18
21
git \
@@ -46,6 +49,7 @@ RUN chmod o+r /usr/local/bundle/gems/robots-*/lib/robots.rb
46
49
RUN adduser -g msfconsole -D $MSF_USER
47
50
48
51
RUN /usr/sbin/setcap cap_net_raw,cap_net_bind_service=+eip $(which ruby)
52
+ RUN /usr/sbin/setcap cap_net_raw,cap_net_bind_service=+eip /usr/bin/nmap
49
53
50
54
USER $MSF_USER
51
55
Original file line number Diff line number Diff line change 6
6
lhost = %x(hostname -i)
7
7
end
8
8
run_single("setg LHOST #{lhost}")
9
- run_single("db_connect #{ENV['DATABASE_URL'].gsub('postrgres://', '') }") if ENV['DATABASE_URL']
9
+ run_single("db_connect #{ENV['DATABASE_URL']}") if ENV['DATABASE_URL']
10
10
</ruby>
You can’t perform that action at this time.
0 commit comments