1
1
Fork 0
mirror of https://github.com/OJ/gobuster.git synced 2024-05-04 22:46:07 +02:00
gobuster/gobusterdir/options.go
Christian Mehlmauer 6a2b40ff86
Cherry-picked the gomodules code from #117
This was cherry-picked from the gomod branch instead of being merged as
a PR for two reasons:

1) The vhost plugin addition isn't yet ready for merging, as there's
   a lot of code duplication.
2) This code can technically be merged as is without the mods to the
   vhost plugin.

When/If we're ready to merge the vhost plugin we'll fix that side up.
2019-01-09 11:17:46 +10:00

39 lines
897 B
Go

package gobusterdir
import (
"time"
"github.com/OJ/gobuster/v3/libgobuster"
)
// OptionsDir is the struct to hold all options for this plugin
type OptionsDir struct {
Extensions string
ExtensionsParsed libgobuster.StringSet
Password string
StatusCodes string
StatusCodesParsed libgobuster.IntSet
URL string
UserAgent string
Username string
Proxy string
Cookies string
Timeout time.Duration
FollowRedirect bool
IncludeLength bool
Expanded bool
NoStatus bool
InsecureSSL bool
UseSlash bool
IsWildcard bool
WildcardForced bool
}
// NewOptionsDir returns a new initialized OptionsDir
func NewOptionsDir() *OptionsDir {
return &OptionsDir{
StatusCodesParsed: libgobuster.NewIntSet(),
ExtensionsParsed: libgobuster.NewStringSet(),
}
}