Skip to content

Commit

Permalink
Update descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
hahwul committed Mar 27, 2023
1 parent a33988a commit b5769e1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ dalfox [mode] [target] [flags]
Single target mode
```bash
dalfox url http://testphp.vulnweb.com/listproducts.php\?cat\=123\&artist\=123\&asdf\=ff \
-b https://hahwul.xss.ht
-b https://your-callback-url
```

Multiple target mode from file
Expand Down
5 changes: 3 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package cmd
import (
"encoding/json"
"fmt"
"github.com/hahwul/dalfox/v2/pkg/har"
"io/ioutil"
"os"
"time"

"github.com/hahwul/dalfox/v2/pkg/har"

"github.com/hahwul/dalfox/v2/pkg/model"
"github.com/hahwul/dalfox/v2/pkg/printing"
"github.com/logrusorgru/aurora"
Expand Down Expand Up @@ -64,7 +65,7 @@ func init() {
rootCmd.PersistentFlags().StringVar(&customAlertValue, "custom-alert-value", "1", "Change alert value\n * Example: --custom-alert-value=document.cookie")
rootCmd.PersistentFlags().StringVar(&customAlertType, "custom-alert-type", "none", "Change alert value type\n * Example: --custom-alert-type=none / --custom-alert-type=str,none")
rootCmd.PersistentFlags().StringVar(&userAgent, "user-agent", "", "Add custom UserAgent")
rootCmd.PersistentFlags().StringVarP(&blind, "blind", "b", "", "Add your blind xss\n * Example: -b hahwul.xss.ht")
rootCmd.PersistentFlags().StringVarP(&blind, "blind", "b", "", "Add your blind xss\n * Example: -b your-callback-url")
rootCmd.PersistentFlags().StringVarP(&output, "output", "o", "", "Write to output file (By default, only the PoC code is saved)")
rootCmd.PersistentFlags().StringVar(&format, "format", "plain", "Stdout output format\n * Supported: plain / json")
rootCmd.PersistentFlags().StringVar(&foundAction, "found-action", "", "If found weak/vuln, action(cmd) to next\n * Example: --found-action='./notify.sh'")
Expand Down
2 changes: 1 addition & 1 deletion docs/_docs/flags.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ permalink: /docs/flags/

```
-b, --blind string Add your blind xss
* Example: -b hahwul.xss.ht
* Example: -b your-callback-url
--config string Using config from file
-C, --cookie string Add custom cookie
--cookie-from-raw string Load cookie from burp raw http request
Expand Down
2 changes: 1 addition & 1 deletion docs/_docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Modes:
Global Flags:
-b, --blind string Add your blind xss
* Example: -b hahwul.xss.ht
* Example: -b your-callback-url
--config string Using config from file
-C, --cookie string Add custom cookie
--cookie-from-raw string Load cookie from burp raw http request
Expand Down
2 changes: 1 addition & 1 deletion lib/func_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func TestInitialize(t *testing.T) {
opt := dalfox.Options{
Cookie: "ABCD=1234",
UniqParam: []string{"q"},
BlindURL: "hahwul.xss.ht",
BlindURL: "your-callback-url",
CustomAlertValue: "1",
CustomAlertType: "none",
Header: []string{"Cookie: 1234", "ABCD: 1234"},
Expand Down

0 comments on commit b5769e1

Please sign in to comment.