Last active
November 1, 2017 19:44
-
-
Save ilyaglow/167e3133c03efb450d3325410e0c4cda to your computer and use it in GitHub Desktop.
Dockerized masscan
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine | |
LABEL maintainer "contact@ilyaglotov.com" | |
RUN apk update \ | |
&& apk add --no-cache libcap \ | |
libpcap-dev \ | |
\ | |
&& apk add --no-cache --virtual .deps build-base \ | |
git \ | |
linux-headers \ | |
\ | |
&& git clone --branch=master \ | |
--depth=1 \ | |
https://github.com/robertdavidgraham/masscan.git \ | |
&& cd masscan \ | |
&& make \ | |
\ | |
&& apk del .deps \ | |
&& rm -rf /var/cache/apk/* | |
RUN adduser -D scan \ | |
&& setcap cap_net_raw=eip /masscan/bin/masscan | |
USER scan | |
ENTRYPOINT ["/masscan/bin/masscan"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment