Documentation ¶
Index ¶
- type BodyParam
- type BodyParamFinder
- type Cookie
- type CookieFinder
- type CustomHeader
- type EntireBody
- type EntireBodyFinder
- type Entrypoint
- type Finder
- type Header
- type HeaderFinder
- type JSONParam
- type JSONParamFinder
- type Multipart
- type MultipartFinder
- type Path
- type PathFinder
- type Query
- type QueryFinder
- type URL
- type URLFinder
- type XMLParam
- type XMLParamFinder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BodyParam ¶
BodyParam represents a body parameter entrypoint. It is used to inject payloads into the request's body's params. Both, keys and values can be injected.
func (BodyParam) InjectPayload ¶
func (BodyParam) InsertionPointType ¶
func (b BodyParam) InsertionPointType() profile.InsertionPointType
type BodyParamFinder ¶
type BodyParamFinder struct{}
BodyParamFinder is used to find entrypoints in the request's body.
func NewBodyParamFinder ¶
func NewBodyParamFinder() BodyParamFinder
NewBodyParamFinder instantiates a new BodyParamFinder.
func (BodyParamFinder) Find ¶
func (f BodyParamFinder) Find(req request.Request) []Entrypoint
type Cookie ¶
type Cookie struct { Base string // contains filtered or unexported fields }
Cookie represents a cookie entrypoint. It is used to inject payloads into the cookie of a request. Both, keys and values can be injected.
func (Cookie) InjectPayload ¶
func (Cookie) InsertionPointType ¶
func (b Cookie) InsertionPointType() profile.InsertionPointType
type CookieFinder ¶
type CookieFinder struct{}
CookieFinder is used to find entrypoints in the request's cookies.
func NewCookieFinder ¶
func NewCookieFinder() CookieFinder
NewCookieFinder instantiates a new CookieFinder.
func (CookieFinder) Find ¶
func (f CookieFinder) Find(req request.Request) []Entrypoint
type CustomHeader ¶
type CustomHeader struct { HeaderKey string // contains filtered or unexported fields }
CustomHeader represents a custom header entrypoint. It is used to inject new headers into the request.
func (CustomHeader) InjectPayload ¶
func (e CustomHeader) InjectPayload(req request.Request, _ profile.PayloadPosition, payload string) request.Request
func (CustomHeader) InsertionPointType ¶
func (b CustomHeader) InsertionPointType() profile.InsertionPointType
func (CustomHeader) Param ¶
func (e CustomHeader) Param(_ string) string
type EntireBody ¶
type EntireBody struct {
// contains filtered or unexported fields
}
EntireBody represents an entire body entrypoint. It is used to inject payloads for the entire request's body.
func (EntireBody) InjectPayload ¶
func (e EntireBody) InjectPayload(req request.Request, pos profile.PayloadPosition, payload string) request.Request
func (EntireBody) InsertionPointType ¶
func (b EntireBody) InsertionPointType() profile.InsertionPointType
type EntireBodyFinder ¶
type EntireBodyFinder struct{}
EntireBodyFinder is used to find entrypoints in the request's entire body.
func NewEntireBodyFinder ¶
func NewEntireBodyFinder() EntireBodyFinder
NewEntireBodyFinder instantiates a new EntireBodyFinder.
func (EntireBodyFinder) Find ¶
func (EntireBodyFinder) Find(req request.Request) []Entrypoint
type Entrypoint ¶
type Entrypoint interface { Param(param string) string Value() string InsertionPointType() profile.InsertionPointType InjectPayload(req request.Request, pos profile.PayloadPosition, payload string) request.Request }
Entrypoint defines the behavior of a request's entrypoint, which is a point in the request where a payload can be injected. For instance, a URL entrypoint would be the path of the request.
Specific implementations of this interface are responsible for injecting payloads into the request.
func From ¶
func From(s profile.Step) []Entrypoint
From compiles a list of entrypoints from a profile.Step. It is used (only) to generate a list of profile.HeaderNew entrypoints, so to add new headers to the request.
type Finder ¶
type Finder interface {
Find(req request.Request) []Entrypoint
}
Finder defines the behavior of an entrypoints finder, which is a component capable of finding entrypoints in a request.
type Header ¶
type Header struct { HeaderKey string // contains filtered or unexported fields }
Header represents a header entrypoint. It is used to inject payloads into the request's headers.
func (Header) InjectPayload ¶
func (Header) InsertionPointType ¶
func (b Header) InsertionPointType() profile.InsertionPointType
type HeaderFinder ¶
type HeaderFinder struct{}
HeaderFinder is used to find entrypoints in the request's headers.
func NewHeaderFinder ¶
func NewHeaderFinder() HeaderFinder
NewHeaderFinder instantiates a new HeaderFinder.
func (HeaderFinder) Find ¶
func (HeaderFinder) Find(req request.Request) []Entrypoint
type JSONParam ¶
type JSONParam struct { Base string // contains filtered or unexported fields }
JSONParam represents a JSON parameter entrypoint. It is used to inject payloads into the request's JSON parameters. Both, keys and values can be injected.
func (JSONParam) InjectPayload ¶
func (JSONParam) InsertionPointType ¶
func (b JSONParam) InsertionPointType() profile.InsertionPointType
type JSONParamFinder ¶
type JSONParamFinder struct{}
JSONParamFinder is used to find entrypoints in the request's JSON body.
func NewJSONParamFinder ¶
func NewJSONParamFinder() JSONParamFinder
NewJSONParamFinder instantiates a new JSONParamFinder.
func (JSONParamFinder) Find ¶
func (f JSONParamFinder) Find(req request.Request) []Entrypoint
type Multipart ¶
type Multipart struct { Key string // contains filtered or unexported fields }
Multipart represents a multipart entrypoint. It is used to inject payloads into the request's multipart attachments. Both, keys and values can be injected.
func NewMultipartName ¶
func NewMultipartValue ¶
func (Multipart) InjectPayload ¶
func (Multipart) InsertionPointType ¶
func (b Multipart) InsertionPointType() profile.InsertionPointType
type MultipartFinder ¶
type MultipartFinder struct{}
MultipartFinder is used to find entrypoints in the request's multipart form.
func NewMultipartFinder ¶
func NewMultipartFinder() MultipartFinder
NewMultipartFinder instantiates a new MultipartFinder.
func (MultipartFinder) Find ¶
func (f MultipartFinder) Find(req request.Request) []Entrypoint
type Path ¶
type Path struct { Prefix string // contains filtered or unexported fields }
Path represents a path entrypoint. It is used to inject payloads into the request's path.
func (Path) InjectPayload ¶
func (Path) InsertionPointType ¶
func (b Path) InsertionPointType() profile.InsertionPointType
type PathFinder ¶
type PathFinder struct{}
PathFinder is used to find entrypoints in the request's path.
func (PathFinder) Find ¶
func (PathFinder) Find(req request.Request) []Entrypoint
type Query ¶
Query represents a query entrypoint. It is used to inject payloads into the request's query parameters. Both, keys and values can be injected.
func (Query) InjectPayload ¶
func (Query) InsertionPointType ¶
func (b Query) InsertionPointType() profile.InsertionPointType
type QueryFinder ¶
type QueryFinder struct{}
QueryFinder is used to find entrypoints in the request's query.
func NewQueryFinder ¶
func NewQueryFinder() QueryFinder
NewQueryFinder instantiates a new QueryFinder.
func (QueryFinder) Find ¶
func (f QueryFinder) Find(req request.Request) []Entrypoint
type URL ¶
URL represents a URL entrypoint. It is used to inject payloads into the request's URL.
func (URL) InjectPayload ¶
func (URL) InsertionPointType ¶
func (b URL) InsertionPointType() profile.InsertionPointType
type URLFinder ¶
type URLFinder struct{}
URLFinder is used to find entrypoints in the request's URL.
type XMLParam ¶
type XMLParam struct { Base string // contains filtered or unexported fields }
XMLParam represents an XML entrypoint. It is used to inject payloads into the request's XML parameters and attributes. Both, keys and values can be injected.
func (XMLParam) InjectPayload ¶
func (XMLParam) InsertionPointType ¶
func (b XMLParam) InsertionPointType() profile.InsertionPointType
type XMLParamFinder ¶
type XMLParamFinder struct {
// contains filtered or unexported fields
}
XMLParamFinder is used to find entrypoints in the request's XML body.
func NewXMLParamFinder ¶
func NewXMLParamFinder() *XMLParamFinder
NewXMLParamFinder instantiates a new XMLParamFinder.
func (*XMLParamFinder) Find ¶
func (f *XMLParamFinder) Find(req request.Request) []Entrypoint
Source Files ¶
- entrypoint.go
- entrypoint_body_param.go
- entrypoint_cookie.go
- entrypoint_custom_header.go
- entrypoint_entire_body.go
- entrypoint_header.go
- entrypoint_json_param.go
- entrypoint_multipart.go
- entrypoint_path.go
- entrypoint_query.go
- entrypoint_url.go
- entrypoint_xml_param.go
- finder_body_param.go
- finder_cookie.go
- finder_entire_body.go
- finder_header.go
- finder_json_param.go
- finder_multipart.go
- finder_path.go
- finder_query.go
- finder_url.go
- finder_xml_param.go