list

package
v3.2.7-fix1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 26 Imported by: 0

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

View Source
const DefaultMaxDedupeItemsCount = 10000

Variables

This section is empty.

Functions

This section is empty.

Types

type ListInputProvider

type ListInputProvider struct {
	sync.Once
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

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