Skip to content

Commit

Permalink
Merge pull request #2 from CyberRoute/refactorui
Browse files Browse the repository at this point in the history
adding dockerfile
  • Loading branch information
CyberRoute authored Mar 27, 2023
2 parents d571cdd + 1966c32 commit 93c12d4
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 93c12d4

Please sign in to comment.