31 lines
675 B
Go
31 lines
675 B
Go
|
package libgobuster
|
||
|
|
||
|
import (
|
||
|
"crypto/tls"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
// BasicHTTPOptions defines only core http options
|
||
|
type BasicHTTPOptions struct {
|
||
|
UserAgent string
|
||
|
Proxy string
|
||
|
NoTLSValidation bool
|
||
|
Timeout time.Duration
|
||
|
RetryOnTimeout bool
|
||
|
RetryAttempts int
|
||
|
TLSCertificate *tls.Certificate
|
||
|
}
|
||
|
|
||
|
// HTTPOptions is the struct to pass in all http options to Gobuster
|
||
|
type HTTPOptions struct {
|
||
|
BasicHTTPOptions
|
||
|
Password string
|
||
|
URL string
|
||
|
Username string
|
||
|
Cookies string
|
||
|
Headers []HTTPHeader
|
||
|
NoCanonicalizeHeaders bool
|
||
|
FollowRedirect bool
|
||
|
Method string
|
||
|
}
|