Add capabilities to nmap
parent
f605db1217
commit
baf297f60e
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue