MCPcopy
hub / github.com/OJ/gobuster / getFlags

Function getFlags

cli/fuzz/fuzz.go:23–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21}
22
23func 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
36func run(c *cli.Context) error {
37 pluginOpts := gobusterfuzz.NewOptions()

Callers 1

CommandFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected