Add capabilities to nmap

This commit is contained in:
Ilya Glotov 2017-05-17 17:17:30 +03:00
parent f605db1217
commit baf297f60e
No known key found for this signature in database
GPG Key ID: AE18CC224730A36D
1 changed files with 3 additions and 0 deletions

View File

@ -46,9 +46,12 @@ RUN chmod o+r /usr/local/bundle/gems/robots-*/lib/robots.rb
RUN adduser -g msfconsole -D $MSF_USER
RUN /usr/sbin/setcap cap_net_raw,cap_net_bind_service=+eip $(which ruby)
RUN /usr/sbin/setcap cap_net_raw,cap_net_bind_service=+eip /usr/bin/nmap
USER $MSF_USER
ADD ./ $APP_HOME
ENV NMAP_PRIVILEGED=""
CMD ["./msfconsole", "-r", "docker/msfconsole.rc"]