Documentation ¶
Index ¶
Constants ¶
const ( DefaultMaxTrackCount = 10000 DefaultParamOccurenceThreshold = 10 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tracker ¶
type Tracker struct {
// contains filtered or unexported fields
}
Tracker implements a frequency tracker for a given input which is used to determine uninteresting input parameters which are not that interesting from fuzzing perspective for a template and target combination.
This is used to reduce the number of requests made during fuzzing for parameters that are less likely to give results for a rule.
func New ¶
New creates a new frequency tracker with a given maximum number of params to track in LRU fashion with a max error threshold
func (*Tracker) IsParameterFrequent ¶
IsParameterFrequent checks if a parameter is frequently occuring in the input with no much results.
func (*Tracker) MarkParameter ¶
MarkParameter marks a parameter as frequently occuring once.
The logic requires a parameter to be marked as frequently occuring multiple times before it's considered as frequently occuring.
func (*Tracker) UnmarkParameter ¶
UnmarkParameter unmarks a parameter as frequently occuring. This carries more weight and resets the frequency counter for the parameter causing it to be checked again. This is done when results are found.