Skip to content

Commit

Permalink
Merge pull request #540 from hahwul/dev
Browse files Browse the repository at this point in the history
Update documents
  • Loading branch information
hahwul authored Mar 26, 2024
2 parents 80f5bd3 + 2fa7631 commit 2f6dd5c
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 89 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
fetch-depth: 2
- uses: actions/setup-go@v2
with:
go-version: '1.17'
go-version: '1.21'
- name: Run coverage
run: go test -coverprofile=coverage.out -covermode=atomic ./...
- name: Upload coverage to Codecov
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.17", "1.18", "1.19", "1.20", "1.21"]
go: ["1.19", "1.20", "1.21", "1.22"]
steps:
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v4
Expand Down
24 changes: 11 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,28 +63,26 @@ Mode: `url` `sxss` `pipe` `file` `server` `payload`
And the various options required for the testing :D

## How to Install
### From source
**go1.17**
```
go install github.com/hahwul/dalfox/v2@latest
```

**go1.16**
```
GO111MODULE=on go get github.com/hahwul/dalfox/v2
```

### Using homebrew (macos)
```
brew tap hahwul/dalfox
```bash
brew install dalfox

# https://formulae.brew.sh/formula/dalfox
```

### Using snapcraft (ubuntu)
```
sudo snap install dalfox
```

### From source

```bash
go install github.com/hahwul/dalfox/v2@latest

# The actual release might slightly differ. This is because go install references the main branch.
```

More information? please read [Installation guide](https://dalfox.hahwul.com/docs/installation/)

## Usage
Expand Down
15 changes: 7 additions & 8 deletions docs/_docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ Homebrew is the package manager for MacOS(or linux). On devices using homebrew,
```shell
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
```

### Install dalfox
```shell
brew tap hahwul/dalfox
brew install dalfox

# https://formulae.brew.sh/formula/dalfox
```

## Using Snapcraft
Expand All @@ -27,15 +29,12 @@ Please check this documents [https://snapcraft.io/docs/installing-snapd](https:/
sudo snap install dalfox
```

## Using go-install or go-get
**go1.17**
```
## From source

```bash
go install github.com/hahwul/dalfox/v2@latest
```

**go1.16**
```
GO111MODULE=on go get github.com/hahwul/dalfox/v2
# The actual release might slightly differ. This is because go install references the main branch.
```

## Using Docker
Expand Down
18 changes: 9 additions & 9 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module github.com/hahwul/dalfox/v2

go 1.17
go 1.19

require (
github.com/PuerkitoBio/goquery v1.8.1
github.com/PuerkitoBio/goquery v1.9.1
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
github.com/briandowns/spinner v1.23.0
github.com/chromedp/cdproto v0.0.0-20240202021202-6d0b6a386732
Expand All @@ -14,20 +14,20 @@ require (
github.com/olekukonko/tablewriter v0.0.5
github.com/sirupsen/logrus v1.9.3
github.com/spf13/cobra v1.8.0
github.com/stretchr/testify v1.8.4
github.com/stretchr/testify v1.9.0
github.com/swaggo/echo-swagger v1.4.1
github.com/swaggo/swag v1.16.2
github.com/swaggo/swag v1.16.3
github.com/tidwall/sjson v1.2.5
github.com/tylerb/graceful v1.2.15
golang.org/x/sync v0.6.0
golang.org/x/term v0.17.0
golang.org/x/term v0.18.0
)

require (
github.com/KyleBanks/depth v1.2.1 // indirect
github.com/PuerkitoBio/purell v1.1.1 // indirect
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
github.com/andybalholm/cascadia v1.3.1 // indirect
github.com/andybalholm/cascadia v1.3.2 // indirect
github.com/antonfisher/nested-logrus-formatter v1.3.1 // indirect
github.com/chromedp/sysutil v1.0.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
Expand Down Expand Up @@ -56,9 +56,9 @@ require (
github.com/tidwall/pretty v1.2.0 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasttemplate v1.2.2 // indirect
golang.org/x/crypto v0.17.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/sys v0.17.0 // indirect
golang.org/x/crypto v0.19.0 // indirect
golang.org/x/net v0.21.0 // indirect
golang.org/x/sys v0.18.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/time v0.3.0 // indirect
golang.org/x/tools v0.7.0 // indirect
Expand Down
Loading

0 comments on commit 2f6dd5c

Please sign in to comment.