fuzzer

package
v0.29.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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