input

package
v3.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 9 Imported by: 0

README

input

input package contains and provides loading, parsing , validating and normalizing of input data

transform

Transform package transforms or normalizes the input data before it is sent to protocol executer this step mainly involves changes like adding default ports (if missing) , validating if input is file or directory or url and adjusting the input accordingly etc.

Provider

Provider package contains the interface that every input format should implement for providing that input format to nuclei.

Currently Nuclei Supports three input providers:

  1. SimpleInputProvider = A No-Op provider that takes a list of urls and implements the provider interface.

  2. HttpInputProvider = A provider that supports loading and parsing input formats that contain complete Http Data like Entire Request, Response etc. Supported formats include Burp,openapi,swagger,postman,proxify etc.

  3. ListInputProvider = Legacy/Default Provider that handles all list type inputs like urls,domains,ips,cidrs,files etc.

func NewInputProvider(opts InputOptions) (InputProvider, error)

This function returns a InputProvider based by appropriately selecting input provider based on the input format (i.e either list or http) and returns the provider that can handle that input format.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Helper

type Helper struct {
	InputsHTTP *hybrid.HybridMap
}

Helper is a structure for helping with input transformation

func NewHelper

func NewHelper() *Helper

NewHelper returns a new input helper instance

func (*Helper) Close

func (h *Helper) Close() error

Close closes the resources associated with input helper

func (*Helper) Transform

func (h *Helper) Transform(input string, protocol templateTypes.ProtocolType) string

Transform transforms an input based on protocol type and returns appropriate input based on it.

Directories

Path Synopsis
list
package list implements a hybrid hmap/filekv backed input provider for nuclei that can either stream or store results using different kv stores.
package list implements a hybrid hmap/filekv backed input provider for nuclei that can either stream or store results using different kv stores.

Jump to

Keyboard shortcuts

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