m3n0sd0n4ld / GooFuzz

GooFuzz is a tool to perform fuzzing with an OSINT approach, managing to enumerate directories, files, subdomains or parameters without leaving evidence on the target's server and by means of advanced Google searches (Google Dorking).
GNU General Public License v3.0
1.29k stars 131 forks source link

Dockerfile #9

Closed dhabierre closed 8 months ago

dhabierre commented 10 months ago

Hi,

It should be nice to add a Dockerfile example to package the binary inside a Docker image (for Windows users for example)

Here an example that works on my Windows 11 computer with Docker Desktop (=> Linux containers):

FROM alpine:3.18

ARG GOOFUZZ_VERSION=1.2.2

RUN apk --no-cache update && \
    apk --no-cache add bash curl zip

ADD https://github.com/m3n0sd0n4ld/GooFuzz/releases/download/${GOOFUZZ_VERSION}/GooFuzz_release_${GOOFUZZ_VERSION}.zip /tmp

WORKDIR /tmp

RUN unzip /tmp/GooFuzz_release_${GOOFUZZ_VERSION}.zip
RUN chmod +x /tmp/GooFuzz_release_${GOOFUZZ_VERSION}/GooFuzz
RUN mv /tmp/GooFuzz_release_${GOOFUZZ_VERSION}/GooFuzz /usr/local/bin
RUN mv /tmp/GooFuzz_release_${GOOFUZZ_VERSION}/wordlists /usr/local/bin
RUN rm -rf /tmp/*

WORKDIR /

CMD ["/bin/bash"]

Command to build the image:

# go to the folder that contains the Dockerfile

docker build -t goofuzz:1.2.2 .

Once the image is built:

docker images

# Output:
# REPOSITORY   TAG       IMAGE ID       CREATED          SIZE
# goofuzz      1.2.2     5cbc6869778a   11 seconds ago   14.2MB

Command to execute the container:

docker run -it goofuzz:1.2.2

Then enter GooFuzz -h

Hope this help :)

m3n0sd0n4ld commented 8 months ago

Hello!

Sorry for the delay.

I'm going to try the instructions and if everything works great, I'll post it and mention you, of course.

Thanks for sharing!

m3n0sd0n4ld commented 8 months ago

Hi!

I have uploaded a new version, I finally tweaked the Dockerfile to not depend on specifying versions and I have adapted it with the just and necessary.

https://github.com/m3n0sd0n4ld/GooFuzz/releases/tag/1.2.3

Anyway, if you detect any anomaly, please let me know.

Thanks for the idea and your proposal, take care!