Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker support #11

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM golang:1.22.3-alpine AS builder
# Install Firefly
RUN go install -v github.com/Brum3ns/firefly/cmd/firefly@latest

# Run binary
FROM alpine:3.19.1
RUN apk upgrade --no-cache \
&& apk add --no-cache git

COPY --from=builder /go/bin/firefly /usr/local/bin/
# Install and move Firefly's database to the systems config folder
RUN git clone https://github.com/Brum3ns/firefly-db /root/.config/firefly/
ENTRYPOINT ["firefly"]
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,22 @@ Firefly is an advanced black-box fuzzer and not just a standard asset discovery

# Installation

```
## Golang

```bash
go install -v github.com/Brum3ns/firefly/cmd/firefly@latest
```
or
```
# or
go get -v github.com/Brum3ns/firefly/cmd/firefly
```

## Docker

```bash
docker build -t firefly:latest .
alias firefly='docker run --rm -it --net=host -v "$PWD:/firefly/" firefly:latest'
firefly -u 'http://example.com/?query=FUZZ/'
```

<!--
If the above install method do not work try the following:
```
Expand Down
2 changes: 1 addition & 1 deletion pkg/request/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func SetPostbody(body string) *bytes.Buffer {
// Return the scheme or an empty string if no scheme was presented in the given URL.
func ContainScheme(s string) string {
if lst_scheme := regexScheme.FindStringSubmatch(s); len(lst_scheme) > 0 {
fmt.Println(lst_scheme)
// fmt.Println(lst_scheme)
return lst_scheme[1]
}
return ""
Expand Down