Documentation ¶
Overview ¶
package list implements a hybrid hmap/filekv backed input provider for nuclei that can either stream or store results using different kv stores.
Index ¶
- Constants
- type ListInputProvider
- func (i *ListInputProvider) Close()
- func (i *ListInputProvider) Count() int64
- func (i *ListInputProvider) Del(value string)
- func (i *ListInputProvider) InputType() string
- func (i *ListInputProvider) Iterate(callback func(value *contextargs.MetaInput) bool)
- func (i *ListInputProvider) Set(value string)
- func (i *ListInputProvider) SetWithExclusions(value string) error
- func (i *ListInputProvider) SetWithProbe(value string, probe providerTypes.InputLivenessProbe) error
- type Options
Constants ¶
const DefaultMaxDedupeItemsCount = 10000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListInputProvider ¶
ListInputProvider is a hmap/filekv backed nuclei ListInputProvider provider it supports list type of input ex: urls,file,stdin,uncover,etc. (i.e just url not complete request/response)
func New ¶
func New(opts *Options) (*ListInputProvider, error)
New creates a new hmap backed nuclei Input Provider and initializes it based on the passed options Model.
func (*ListInputProvider) Close ¶
func (i *ListInputProvider) Close()
Close closes the input provider
func (*ListInputProvider) Count ¶
func (i *ListInputProvider) Count() int64
Count returns the input count
func (*ListInputProvider) Del ¶
func (i *ListInputProvider) Del(value string)
func (*ListInputProvider) InputType ¶
func (i *ListInputProvider) InputType() string
ListInputProvider is a hmap/filekv backed nuclei ListInputProvider provider
func (*ListInputProvider) Iterate ¶
func (i *ListInputProvider) Iterate(callback func(value *contextargs.MetaInput) bool)
Iterate over all inputs in order
func (*ListInputProvider) Set ¶
func (i *ListInputProvider) Set(value string)
Set normalizes and stores passed input values
func (*ListInputProvider) SetWithExclusions ¶
func (i *ListInputProvider) SetWithExclusions(value string) error
SetWithExclusions normalizes and stores passed input values if not excluded
func (*ListInputProvider) SetWithProbe ¶
func (i *ListInputProvider) SetWithProbe(value string, probe providerTypes.InputLivenessProbe) error
SetWithProbe only sets the input if it is live
type Options ¶
type Options struct { // Options contains options for hmap provider Options *types.Options // NotFoundCallback is called for each not found target // This overrides error handling for not found target NotFoundCallback func(template string) bool }
Options is a wrapper around types.Options structure