Comments (5)
Hey @Techbrunch,
Thanks, surely we can add Docker support as we have with all other projects, also I believe we need to add massdns
installation in this which is required to run shuffledns.
from shuffledns.
You are right, I removed too much from my own Dockerfile:
FROM golang:1.14-alpine as build
RUN apk --no-cache add git
RUN go get -u -v github.com/projectdiscovery/shuffledns/cmd/shuffledns; exit 0
ENV GO111MODULE on
WORKDIR github.com/projectdiscovery/shuffledns/cmd/shuffledns
RUN go install ./...
FROM alpine:latest
RUN apk --update --no-cache add ldns \
&& apk --no-cache --virtual .deps add ldns-dev \
git \
build-base \
&& git clone --branch=master \
--depth=1 \
https://github.com/blechschmidt/massdns.git \
&& cd massdns \
&& make \
&& mv bin/massdns /bin/massdns \
&& rm -rf /massdns \
&& apk del .deps
COPY --from=build /go/bin/shuffledns /usr/bin/shuffledns
ENV HOME /
ENTRYPOINT ["/usr/bin/shuffledns"]
The massdns part is from: https://github.com/security-dockerfiles/massdns/blob/master/Dockerfile
The image is 13.9MB
from shuffledns.
FROM golang:1.14-alpine as build
RUN apk --no-cache add git
RUN go get -u -v github.com/projectdiscovery/shuffledns/cmd/shuffledns; exit 0
ENV GO111MODULE on
#WORKDIR github.com/projectdiscovery/shuffledns/cmd/shuffledns
#RUN go install ./...
FROM alpine:latest
RUN apk --update --no-cache add ldns \
&& apk --no-cache --virtual .deps add ldns-dev \
git \
build-base \
&& git clone --branch=master \
--depth=1 \
https://github.com/blechschmidt/massdns.git \
&& cd massdns \
&& make \
&& mv bin/massdns /bin/massdns \
&& rm -rf /massdns \
&& apk del .deps
COPY --from=build /go/bin/shuffledns /usr/bin/shuffledns
ENV HOME /
ENTRYPOINT ["/usr/bin/shuffledns"]
root@b0x:~/test# docker run -v $HOME:/usr/bin -it projectdiscovery/shuffledns -d facebook.com -r resolvers.txt -w test.txt
docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"/usr/bin/shuffledns\": permission denied": unknown.
ERRO[0001] error waiting for container: context canceled
@Techbrunch you got it working on your side?
from shuffledns.
I think the issue was that I put the massdns binary in a non standard location /bin/massdns
here is an updated version with the binary moved to /usr/bin/massdns
same as shuffledns:
FROM golang:1.14-alpine as build
RUN apk --no-cache add git
RUN go get -u -v github.com/projectdiscovery/shuffledns/cmd/shuffledns; exit 0
ENV GO111MODULE on
WORKDIR github.com/projectdiscovery/shuffledns/cmd/shuffledns
RUN go install ./...
FROM alpine:latest
LABEL maintainer "Ilya Glotov <[email protected]"
RUN apk --update --no-cache add ldns \
&& apk --no-cache --virtual .deps add ldns-dev \
git \
build-base \
&& git clone --branch=master \
--depth=1 \
https://github.com/blechschmidt/massdns.git \
&& cd massdns \
&& make \
&& mv bin/massdns /usr/bin/massdns \
&& rm -rf /massdns \
&& apk del .deps
COPY --from=build /go/bin/shuffledns /usr/bin/shuffledns
ENV HOME /
ENTRYPOINT ["/usr/bin/shuffledns"]
Let me know if it fixes the issue.
from shuffledns.
Hi @Techbrunch,
Thank you for the update, I've added the Dockerfile and pushed the image on docker hub as well.
docker pull projectdiscovery/shuffledns:latest
Can you please update the readme section about using the docker to run shuffledns?
from shuffledns.
Related Issues (20)
- Shuffledns doesn't do anything HOT 3
- goflags integration
- recursive bruteforcing HOT 1
- multi domain wildcard filtering HOT 1
- Use utils helper libraries
- how to integrate shuffledns to my work?
- Alternative to dnsvalidator?
- Add update check and self update option
- [FTL] Could not create runner: could not find massdns binary HOT 1
- Router Crashing
- Upstream minisign 404 error results in inability to install HOT 2
- hashmap size -s argument HOT 9
- could not parse massdns output when `--processes 2` specified HOT 2
- could not execute massdns: exit status 2 HOT 1
- Add Found Result Count for Resolved Subdomains on shuffledns HOT 1
- module github.com/mholt/archiver@latest found (v3.1.1+incompatible), but does not contain package github.com/mholt/archiver HOT 2
- Add result callback function HOT 2
- wildcard filter not work when RunEnumeration multi times HOT 1
- panic: runtime error: index out of range [-1] HOT 2
- not work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shuffledns.