diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c6ea08c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM golang:alpine as build-stage + +RUN apk --no-cache add ca-certificates + +WORKDIR /go/src/github.com/CyberRoute/bruter + +COPY . . + +RUN CGO_ENABLED=0 GOOS=linux go build -a -o /bruter ./cmd/bruter/*.go + +FROM scratch + +COPY --from=build-stage /bruter /bruter + +ADD pkg/fuzzer/apache-list pkg/fuzzer/apache-list +ADD templates/ templates/ + +EXPOSE 8080 + +ENTRYPOINT ["/bruter"] diff --git a/README.md b/README.md index 7334341..ded9402 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,14 @@ What does it do? -verbose Verbosity ``` + +# Running in Docker +``` +docker build -t bruter . +docker run --rm -it -p 8080:8080 bruter -domain example.com -shodan [shodanapikey] -verbose +``` + + # Example go run cmd/bruter/* -domain example.com -shodan [SHODANTOKEN] -verbose 12:41PM INF Scanning IP 93.184.216.34 OK