Versions in this module Expand all Collapse all v1 v1.0.0 Feb 1, 2026 Changes in this version + type AuthCredentials struct + Cookies []*http.Cookie + FormFields map[string]string + Headers map[string]string + LoginURL string + OAuthConfig *OAuthConfig + Password string + Token string + Type AuthType + Username string + type AuthType string + const AuthTypeAPIKey + const AuthTypeBasic + const AuthTypeFormLogin + const AuthTypeJWT + const AuthTypeNone + const AuthTypeOAuth + const AuthTypeSession + type Config struct + AJAXDiscovery bool + ActiveAPIDiscovery bool + Auth AuthCredentials + Browser browser.Config + Cookies map[string]string + CustomHeaders map[string]string + Debug bool + EnhancedDiscovery EnhancedDiscoveryConfig + FastMode bool + FormAnalysis bool + JSAnalysis bool + MaxDepth int + Output OutputConfig + PassiveAPIDiscovery bool + Proxy string + RateLimit RateLimitConfig + Scope ScopeRules + State StateConfig + Target string + Timeout time.Duration + UserAgents []string + Verbose bool + WebSocketDiscovery bool + Workers int + func BalancedConfig() *Config + func DefaultConfig() *Config + func LoadFromFile(path string) (*Config, error) + func TurboConfig() *Config + func (c *Config) Clone() *Config + func (c *Config) SaveToFile(path string) error + func (c *Config) Validate() error + type CrawlError struct + Error string + Timestamp time.Time + URL string + type CrawlResult struct + CompletedAt time.Time + Endpoints []Endpoint + Errors []CrawlError + Forms []Form + Secrets []SecretFinding + StartedAt time.Time + Stats CrawlStats + Target string + Technologies []Technology + WebSockets []WebSocketEndpoint + type CrawlStats struct + APIEndpoints int + BytesTransferred int64 + Duration time.Duration + ErrorCount int + FormsFound int + PagesCrawled int + URLsDiscovered int + WebSocketEndpoints int + type Crawler struct + func New(opts ...Option) (*Crawler, error) + func (c *Crawler) IsRunning() bool + func (c *Crawler) LoadState(path string) error + func (c *Crawler) Metrics() *metrics.Collector + func (c *Crawler) MetricsSnapshot() *metrics.Snapshot + func (c *Crawler) Results() <-chan interface{} + func (c *Crawler) SaveState(path string) error + func (c *Crawler) ShutdownContext() context.Context + func (c *Crawler) Start(ctx context.Context) (*CrawlResult, error) + func (c *Crawler) Stats() CrawlStats + func (c *Crawler) Stop() error + func (c *Crawler) StopNow() error + type Endpoint struct + ContentType string + Depth int + DiscoveredFrom string + Headers map[string]string + Method string + Parameters []Parameter + ResponseSize int64 + Source string + StatusCode int + Timestamp time.Time + URL string + type EnhancedDiscoveryConfig struct + Concurrency int + EnableFingerprint bool + EnableJSExtract bool + EnableParamDiscovery bool + EnablePathBrute bool + EnableRobots bool + EnableSitemap bool + EnableSourceMaps bool + Enabled bool + type Form struct + Action string + Depth int + Enctype string + HasCSRF bool + Inputs []FormInput + Method string + Timestamp time.Time + URL string + type FormAuth struct + ExtraFields map[string]string + LoginURL string + Password string + PasswordField string + Username string + UsernameField string + type FormInput struct + MaxLength int + MinLength int + Name string + Pattern string + Placeholder string + Required bool + Type string + Value string + type OAuthConfig struct + AuthURL string + ClientID string + ClientSecret string + RedirectURL string + Scopes []string + TokenURL string + type Option func(*Crawler) error + func WithAPIKeyAuth(headerName, apiKey string) Option + func WithActiveDiscovery(enabled bool) Option + func WithAllowedDomains(domains ...string) Option + func WithAuth(auth AuthCredentials) Option + func WithAutoSave(enabled bool, intervalSeconds int) Option + func WithBasicAuth(username, password string) Option + func WithBrowserPool(size int) Option + func WithConfig(config *Config) Option + func WithCookies(cookies []*http.Cookie) Option + func WithCustomHeaders(headers map[string]string) Option + func WithDebug(debug bool) Option + func WithExcludePatterns(patterns ...string) Option + func WithFollowExternal(follow bool) Option + func WithFormAnalysis(enabled bool) Option + func WithFormAuth(auth FormAuth) Option + func WithHeadless(headless bool) Option + func WithIncludePatterns(patterns ...string) Option + func WithJSAnalysis(enabled bool) Option + func WithJWTAuth(token string) Option + func WithLogLevel(level logger.Level) Option + func WithLogger(l *logger.Logger) Option + func WithMaxDepth(depth int) Option + func WithMetrics(m *metrics.Collector) Option + func WithOutput(w io.Writer) Option + func WithOutputFile(path string) Option + func WithPassiveDiscovery(enabled bool) Option + func WithPrettyOutput(pretty bool) Option + func WithProgress(enabled bool) Option + func WithProxy(proxy string) Option + func WithRateLimit(rps float64, burst int) Option + func WithRespectRobotsTxt(respect bool) Option + func WithScope(scope ScopeRules) Option + func WithStateFile(path string) Option + func WithStreamMode(stream bool) Option + func WithTarget(url string) Option + func WithTimeout(timeout time.Duration) Option + func WithUserAgent(ua string) Option + func WithVerbose(verbose bool) Option + func WithWebSocketDiscovery(enabled bool) Option + func WithWorkers(n int) Option + type OutputConfig struct + FilePath string + Format string + Pretty bool + StreamMode bool + type Parameter struct + Example string + Name string + Required bool + Type string + type QueueItem struct + Body []byte + Depth int + Headers map[string]string + Method string + ParentURL string + Priority int + Timestamp time.Time + URL string + type RateLimitConfig struct + Burst int + DelayBetween time.Duration + RequestsPerSecond float64 + RespectRobotsTxt bool + type ScopeRules struct + AllowedDomains []string + ExcludePatterns []string + FollowExternal bool + IncludePatterns []string + MaxDepth int + type SecretFinding struct + Context string + File string + Type string + Value string + type StateConfig struct + AutoSave bool + Enabled bool + FilePath string + Interval int + type Technology struct + Category string + Confidence int + Evidence string + Name string + Version string + type WebSocketEndpoint struct + DiscoveredFrom string + Protocols []string + SampleMessages []WebSocketMsg + Timestamp time.Time + URL string + type WebSocketMsg struct + Data string + Direction string + Timestamp time.Time + Type string