From 13180a1a74c1fdd5649878e0bf7185c9ed2d162d Mon Sep 17 00:00:00 2001 From: CyberRoute Date: Mon, 27 Mar 2023 16:49:59 +0200 Subject: [PATCH 1/2] adding dockerfile --- Dockerfile | 20 ++++++++++++++++++++ README.md | 8 ++++++++ 2 files changed, 28 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6b4ddd2 --- /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"] \ No newline at end of file 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 From 1966c3250942493b5403ef0c11c5677025b60a2e Mon Sep 17 00:00:00 2001 From: CyberRoute Date: Mon, 27 Mar 2023 16:52:08 +0200 Subject: [PATCH 2/2] EOF --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6b4ddd2..c6ea08c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,4 +17,4 @@ ADD templates/ templates/ EXPOSE 8080 -ENTRYPOINT ["/bruter"] \ No newline at end of file +ENTRYPOINT ["/bruter"]