Skip to content

Commit baf297f

Browse files
committed
Add capabilities to nmap
1 parent f605db1 commit baf297f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docker/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,12 @@ RUN chmod o+r /usr/local/bundle/gems/robots-*/lib/robots.rb
4646
RUN adduser -g msfconsole -D $MSF_USER
4747

4848
RUN /usr/sbin/setcap cap_net_raw,cap_net_bind_service=+eip $(which ruby)
49+
RUN /usr/sbin/setcap cap_net_raw,cap_net_bind_service=+eip /usr/bin/nmap
4950

5051
USER $MSF_USER
5152

5253
ADD ./ $APP_HOME
5354

55+
ENV NMAP_PRIVILEGED=""
56+
5457
CMD ["./msfconsole", "-r", "docker/msfconsole.rc"]

0 commit comments

Comments
 (0)