Skip to content

Instantly share code, notes, and snippets.

@ilyaglow
Last active November 1, 2017 19:44
Show Gist options
  • Save ilyaglow/167e3133c03efb450d3325410e0c4cda to your computer and use it in GitHub Desktop.
Save ilyaglow/167e3133c03efb450d3325410e0c4cda to your computer and use it in GitHub Desktop.
Dockerized masscan
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