payloads

package
v0.0.0-...-c35f368 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Payload

type Payload struct {
	InputType string `json:"type"`
	Value     string `json:"value"`
}

Payload represents a fuzzer input

func CreatePayloadsFromInputTypes

func CreatePayloadsFromInputTypes(InputTypes []string, mongodbURI string) ([]Payload, error)

CreatePayloadsFromInputTypes takes an array of Payload InputTypes and an mongodb uri and returns an array of Payloads of that type from mongodb

func New

func New(inputtype string, value string) Payload

New take payload type and value returns a Payload

func NewPayloadsFromFileToJSONFile

func NewPayloadsFromFileToJSONFile(payloadType string, InputFname string, outFilename string) ([]Payload, error)

NewPayloadsFromFileToJSONFile creates and stores payload to a json file

func NewPayloadsFromFileToMongoDB

func NewPayloadsFromFileToMongoDB(payloadType string, InputFname string, mongodbURI string, dbName string) ([]Payload, error)

NewPayloadsFromFileToMongoDB creates and stores payload to mongodb

Jump to

Keyboard shortcuts

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