crawl

package
v0.4.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package crawl spiders a target from its base URL to discover pages, forms and API endpoints, and flags state-changing forms that carry no CSRF token. It is safe-mode: it only issues GET requests (through the guarded, rate-limited client) and never submits a form or sends a payload. All fetches stay on the target's own host; scope and rate limits are enforced by the engine's client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Form

type Form struct {
	Action    string
	Method    string
	HasCSRF   bool
	PageURL   string
	FieldList []string
}

Form is a discovered HTML form.

type Forms

type Forms struct{}

Forms flags state-changing forms with no apparent CSRF token.

func (Forms) ASVS

func (Forms) ASVS() []string

func (Forms) Category

func (Forms) Category() core.Category

func (Forms) Description

func (Forms) Description() string

func (Forms) ID

func (Forms) ID() string

func (Forms) Mode

func (Forms) Mode() core.Mode

func (Forms) OWASP

func (Forms) OWASP() []string

func (Forms) Run

func (Forms) Run(ctx context.Context, t core.Target) ([]core.Finding, error)

type Result

type Result struct {
	Pages     []string
	Forms     []Form
	Endpoints []string // same-host URLs that look like API or data endpoints
}

Result is the crawl output, memoized for the whole scan so other checks (now or later) can reuse it without re-fetching.

func Crawl

func Crawl(ctx context.Context, t core.Target) (*Result, error)

Crawl spiders the target (GET only) and returns discovered pages, forms and endpoints. Memoized per scan.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL