payloads

package
v0.0.0-...-6b9cc00 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasePayload

type BasePayload struct{}

func (BasePayload) GetInteractionData

func (p BasePayload) GetInteractionData() PayloadInteractionData

type CSTIPayload

type CSTIPayload struct {
	BasePayload
	Value    string
	Platform string
}

func (CSTIPayload) GetValue

func (p CSTIPayload) GetValue() string

GetValue gets the payload value as string

func (CSTIPayload) MatchAgainstString

func (p CSTIPayload) MatchAgainstString(text string) (bool, error)

MatchAgainstString Checks if the payload match against a string

type GenericPayload

type GenericPayload struct {
	BasePayload
	Value    string
	Platform string
}

func (GenericPayload) GetValue

func (p GenericPayload) GetValue() string

GetValue gets the payload value as string

func (GenericPayload) MatchAgainstString

func (p GenericPayload) MatchAgainstString(text string) (bool, error)

MatchAgainstString Checks if the payload match against a string

type HostHeaderInjectionPayload

type HostHeaderInjectionPayload struct {
	BasePayload
	Value string
}

func (HostHeaderInjectionPayload) GetValue

func (p HostHeaderInjectionPayload) GetValue() string

GetValue gets the payload value as string

func (HostHeaderInjectionPayload) MatchAgainstString

func (p HostHeaderInjectionPayload) MatchAgainstString(text string) (bool, error)

MatchAgainstString Checks if the payload match against a string

type Log4ShellPayload

type Log4ShellPayload struct {
	Value             string
	InteractionDomain string
	InteractionFullID string
}

func (Log4ShellPayload) GetInteractionData

func (p Log4ShellPayload) GetInteractionData() PayloadInteractionData

func (Log4ShellPayload) GetValue

func (p Log4ShellPayload) GetValue() string

GetValue gets the payload value as string

func (Log4ShellPayload) MatchAgainstString

func (p Log4ShellPayload) MatchAgainstString(text string) (bool, error)

MatchAgainstString Checks if the payload match against a string

type PathTraversalCharacters

type PathTraversalCharacters struct {
	// contains filtered or unexported fields
}

type PathTraversalPayload

type PathTraversalPayload struct {
	BasePayload
	Value string
	Regex string
}

TemplateLanguagePayload Holds a payload and a regex pattern to verify it

func GetPathTraversalPayloads

func GetPathTraversalPayloads(depth int, platform string) (payloads []PathTraversalPayload)

GetPathTraversalPayloads generates a list of path transversals payloads for a target platform

func (PathTraversalPayload) GetValue

func (p PathTraversalPayload) GetValue() string

GetValue gets the payload value

func (PathTraversalPayload) MatchAgainstString

func (p PathTraversalPayload) MatchAgainstString(text string) (bool, error)

MatchAgainstString Checks if the payload match against a string

type PayloadInteractionData

type PayloadInteractionData struct {
	InteractionDomain string
	InteractionFullID string
}

type PayloadInterface

type PayloadInterface interface {
	GetValue() string
	MatchAgainstString(string) (bool, error)
	GetInteractionData() PayloadInteractionData
}

PayloadInterface needed to implement if want to use the payloads with the fuzzer

func GenerateLog4ShellPayload

func GenerateLog4ShellPayload(im *integrations.InteractionsManager) (payloads PayloadInterface)

func GetCSTIPayloads

func GetCSTIPayloads() (payloads []PayloadInterface)

func GetGraphQLIntrospectionPayload

func GetGraphQLIntrospectionPayload() PayloadInterface

func GetHostHeaderInjectionPayloads

func GetHostHeaderInjectionPayloads() (payloads []PayloadInterface)

func GetSimpleGraphQLPayload

func GetSimpleGraphQLPayload() PayloadInterface

func GetXSSPayloads

func GetXSSPayloads() []PayloadInterface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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