mirror of
https://github.com/OJ/gobuster.git
synced 2024-06-02 06:36:03 +02:00
33 lines
955 B
Go
33 lines
955 B
Go
package gobusterdir
|
|
|
|
import (
|
|
"github.com/OJ/gobuster/v3/libgobuster"
|
|
)
|
|
|
|
// OptionsDir is the struct to hold all options for this plugin
|
|
type OptionsDir struct {
|
|
libgobuster.HTTPOptions
|
|
Extensions string
|
|
ExtensionsParsed libgobuster.StringSet
|
|
StatusCodes string
|
|
StatusCodesParsed libgobuster.IntSet
|
|
StatusCodesBlacklist string
|
|
StatusCodesBlacklistParsed libgobuster.IntSet
|
|
UseSlash bool
|
|
WildcardForced bool
|
|
HideLength bool
|
|
Expanded bool
|
|
NoStatus bool
|
|
DiscoverBackup bool
|
|
ExcludeLength []int
|
|
}
|
|
|
|
// NewOptionsDir returns a new initialized OptionsDir
|
|
func NewOptionsDir() *OptionsDir {
|
|
return &OptionsDir{
|
|
StatusCodesParsed: libgobuster.NewIntSet(),
|
|
StatusCodesBlacklistParsed: libgobuster.NewIntSet(),
|
|
ExtensionsParsed: libgobuster.NewStringSet(),
|
|
}
|
|
}
|