| 21 | } |
| 22 | |
| 23 | func getFlags() []cli.Flag { |
| 24 | var flags []cli.Flag |
| 25 | flags = append(flags, internalcli.CommonHTTPOptions()...) |
| 26 | flags = append(flags, internalcli.GlobalOptions()...) |
| 27 | flags = append(flags, []cli.Flag{ |
| 28 | &cli.StringFlag{Name: "exclude-statuscodes", Aliases: []string{"b"}, Usage: "Excluded status codes. Can also handle ranges like 200,300-400,404."}, |
| 29 | &cli.StringFlag{Name: "exclude-length", Aliases: []string{"xl"}, Usage: "exclude the following content lengths (completely ignores the status). You can separate multiple lengths by comma and it also supports ranges like 203-206"}, |
| 30 | &cli.StringFlag{Name: "body", Aliases: []string{"B"}, Usage: "Request body"}, |
| 31 | }...) |
| 32 | |
| 33 | return flags |
| 34 | } |
| 35 | |
| 36 | func run(c *cli.Context) error { |
| 37 | pluginOpts := gobusterfuzz.NewOptions() |