hybrid

package
v3.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Overview

Package hybrid 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 Input

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

Input is a hmap/filekv backed nuclei Input provider

func New

func New(opts *Options) (*Input, error)

New creates a new hmap backed nuclei Input Provider and initializes it based on the passed options Model.

func (*Input) Close

func (i *Input) Close()

Close closes the input provider

func (*Input) Count

func (i *Input) Count() int64

Count returns the input count

func (*Input) Del added in v3.1.0

func (i *Input) Del(value string)

func (*Input) Scan

func (i *Input) Scan(callback func(value *contextargs.MetaInput) bool)

Scan iterates the input and each found item is passed to the callback consumer.

func (*Input) Set

func (i *Input) Set(value string)

Set normalizes and stores passed input values

func (*Input) SetWithExclusions added in v3.1.0

func (i *Input) SetWithExclusions(value string)

SetWithExclusions normalizes and stores passed input values if not excluded

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