fuzzer

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ModeClusterBomb = "cluster_bomb"
View Source
const ModePitchFork = "pitch_fork"

Variables

This section is empty.

Functions

This section is empty.

Types

type Fuzzer

type Fuzzer struct {
	Config  FuzzerConfig
	Results chan any
	State   string
	// contains filtered or unexported fields
}

func NewFuzzer

func NewFuzzer(config FuzzerConfig) *Fuzzer

func (*Fuzzer) Fuzz

func (f *Fuzzer) Fuzz() error

func (*Fuzzer) GetProgress

func (f *Fuzzer) GetProgress() (int, int)

GetProgress returns the current progress (completed, total)

func (*Fuzzer) IncrementCompleted

func (f *Fuzzer) IncrementCompleted()

IncrementCompleted increments the completed requests counter atomically

func (*Fuzzer) ReplaceMarkers

func (f *Fuzzer) ReplaceMarkers(markers map[string]string) string

func (*Fuzzer) SendRequest

func (f *Fuzzer) SendRequest(markers map[string]string)

func (*Fuzzer) SetTotalRequests

func (f *Fuzzer) SetTotalRequests(total int)

SetTotalRequests sets the total number of requests atomically

func (*Fuzzer) Stop

func (f *Fuzzer) Stop()

type FuzzerConfig

type FuzzerConfig struct {
	Request     string
	Host        string
	Port        string
	UseTLS      bool
	UseHTTP2    bool           // Enable HTTP/2 support
	Markers     map[string]any // marker -> string (file path) or []string (inline payloads)
	Mode        string
	Concurrency int
	Timeout     time.Duration
}

type FuzzerResult

type FuzzerResult struct {
	Request  string
	Response string
	Time     time.Duration
	Markers  map[string]string
	Error    string
}

Jump to

Keyboard shortcuts

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