race

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectDivergence

func DetectDivergence(results []RaceResult) (bool, string)

DetectDivergence checks if race results indicate a vulnerability. Returns true + evidence string if responses diverge.

Types

type RaceResult

type RaceResult struct {
	Index      int
	StatusCode int
	BodyHash   string
	TimeMs     int64
}

type SinglePacketAttack

type SinglePacketAttack struct{}

func (*SinglePacketAttack) Attack

func (s *SinglePacketAttack) Attack(targetURL string, method string, body string, headers map[string]string, count int) []RaceResult

Attack performs a synchronized burst race attack using a barrier pattern. All N goroutines prepare requests and fire simultaneously after barrier release.

Jump to

Keyboard shortcuts

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