Files
gobuster/libgobuster/options_http.go
2026-11-08 11:58:28 +01:00

39 lines
951 B
Go

package libgobuster
import (
"crypto/tls"
"net"
"net/url"
"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
TLSRenegotiation bool
LocalAddr *net.TCPAddr
}
// HTTPOptions is the struct to pass in all http options to Gobuster
type HTTPOptions struct {
BasicHTTPOptions
Password string // nolint:gosec
URL *url.URL
Username string
Cookies string
Headers []HTTPHeader
NoCanonicalizeHeaders bool
FollowRedirect bool
Method string
BodyOutputDir string
// RateLimitSleep is the time all requests are paused when a 429 is received.
// 0 disables the rate limit handling.
RateLimitSleep time.Duration
}