cmd_injection

package
v0.0.0-...-37abd50 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const CmdInjectionFrontOKCode int = 200

CmdInjectionFrontOKCode is the HTTP code returned for type CmdInjectionFrontOK

View Source
const CmdInjectionGetQueryCommandContextOKCode int = 200

CmdInjectionGetQueryCommandContextOKCode is the HTTP code returned for type CmdInjectionGetQueryCommandContextOK

View Source
const CmdInjectionGetQueryCommandOKCode int = 200

CmdInjectionGetQueryCommandOKCode is the HTTP code returned for type CmdInjectionGetQueryCommandOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdInjectionFront

type CmdInjectionFront struct {
	Context *middleware.Context
	Handler CmdInjectionFrontHandler
}
CmdInjectionFront swagger:route GET /cmdInjection cmd_injection cmdInjectionFront

front page of the Command Injection vulnerability

func NewCmdInjectionFront

func NewCmdInjectionFront(ctx *middleware.Context, handler CmdInjectionFrontHandler) *CmdInjectionFront

NewCmdInjectionFront creates a new http.Handler for the cmd injection front operation

func (*CmdInjectionFront) ServeHTTP

func (o *CmdInjectionFront) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type CmdInjectionFrontDefault

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

CmdInjectionFrontDefault error occured

swagger:response cmdInjectionFrontDefault

func NewCmdInjectionFrontDefault

func NewCmdInjectionFrontDefault(code int) *CmdInjectionFrontDefault

NewCmdInjectionFrontDefault creates CmdInjectionFrontDefault with default headers values

func (*CmdInjectionFrontDefault) SetStatusCode

func (o *CmdInjectionFrontDefault) SetStatusCode(code int)

SetStatusCode sets the status to the cmd injection front default response

func (*CmdInjectionFrontDefault) WithStatusCode

func (o *CmdInjectionFrontDefault) WithStatusCode(code int) *CmdInjectionFrontDefault

WithStatusCode adds the status to the cmd injection front default response

func (*CmdInjectionFrontDefault) WriteResponse

func (o *CmdInjectionFrontDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CmdInjectionFrontHandler

type CmdInjectionFrontHandler interface {
	Handle(CmdInjectionFrontParams) middleware.Responder
}

CmdInjectionFrontHandler interface for that can handle valid cmd injection front params

type CmdInjectionFrontHandlerFunc

type CmdInjectionFrontHandlerFunc func(CmdInjectionFrontParams) middleware.Responder

CmdInjectionFrontHandlerFunc turns a function with the right signature into a cmd injection front handler

func (CmdInjectionFrontHandlerFunc) Handle

Handle executing the request and returning a response

type CmdInjectionFrontOK

type CmdInjectionFrontOK struct {

	/*
	  In: Body
	*/
	Payload string `json:"body,omitempty"`
}

CmdInjectionFrontOK served front end for Command Injection page of Swagger API

swagger:response cmdInjectionFrontOK

func NewCmdInjectionFrontOK

func NewCmdInjectionFrontOK() *CmdInjectionFrontOK

NewCmdInjectionFrontOK creates CmdInjectionFrontOK with default headers values

func (*CmdInjectionFrontOK) SetPayload

func (o *CmdInjectionFrontOK) SetPayload(payload string)

SetPayload sets the payload to the cmd injection front o k response

func (*CmdInjectionFrontOK) WithPayload

func (o *CmdInjectionFrontOK) WithPayload(payload string) *CmdInjectionFrontOK

WithPayload adds the payload to the cmd injection front o k response

func (*CmdInjectionFrontOK) WriteResponse

func (o *CmdInjectionFrontOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CmdInjectionFrontParams

type CmdInjectionFrontParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

CmdInjectionFrontParams contains all the bound params for the cmd injection front operation typically these are obtained from a http.Request

swagger:parameters CmdInjectionFront

func NewCmdInjectionFrontParams

func NewCmdInjectionFrontParams() CmdInjectionFrontParams

NewCmdInjectionFrontParams creates a new CmdInjectionFrontParams object

There are no default values defined in the spec.

func (*CmdInjectionFrontParams) BindRequest

func (o *CmdInjectionFrontParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewCmdInjectionFrontParams() beforehand.

type CmdInjectionFrontURL

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

CmdInjectionFrontURL generates an URL for the cmd injection front operation

func (*CmdInjectionFrontURL) Build

func (o *CmdInjectionFrontURL) Build() (*url.URL, error)

Build a url path and query string

func (*CmdInjectionFrontURL) BuildFull

func (o *CmdInjectionFrontURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CmdInjectionFrontURL) Must

func (o *CmdInjectionFrontURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*CmdInjectionFrontURL) SetBasePath

func (o *CmdInjectionFrontURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*CmdInjectionFrontURL) String

func (o *CmdInjectionFrontURL) String() string

String returns the string representation of the path with query string

func (*CmdInjectionFrontURL) StringFull

func (o *CmdInjectionFrontURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CmdInjectionFrontURL) WithBasePath

func (o *CmdInjectionFrontURL) WithBasePath(bp string) *CmdInjectionFrontURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type CmdInjectionGetQueryCommand

type CmdInjectionGetQueryCommand struct {
	Context *middleware.Context
	Handler CmdInjectionGetQueryCommandHandler
}
CmdInjectionGetQueryCommand swagger:route GET /cmdInjection/exec.Command/query/{safety} cmd_injection cmdInjectionGetQueryCommand

demonstrates Command Injection via query, with vulnerable function exec.Command

func NewCmdInjectionGetQueryCommand

func NewCmdInjectionGetQueryCommand(ctx *middleware.Context, handler CmdInjectionGetQueryCommandHandler) *CmdInjectionGetQueryCommand

NewCmdInjectionGetQueryCommand creates a new http.Handler for the cmd injection get query command operation

func (*CmdInjectionGetQueryCommand) ServeHTTP

type CmdInjectionGetQueryCommandContext

type CmdInjectionGetQueryCommandContext struct {
	Context *middleware.Context
	Handler CmdInjectionGetQueryCommandContextHandler
}
CmdInjectionGetQueryCommandContext swagger:route GET /cmdInjection/exec.CommandContext/query/{safety} cmd_injection cmdInjectionGetQueryCommandContext

demonstrates Command Injection via query, with vulnerable function exec.CommandContext

func NewCmdInjectionGetQueryCommandContext

func NewCmdInjectionGetQueryCommandContext(ctx *middleware.Context, handler CmdInjectionGetQueryCommandContextHandler) *CmdInjectionGetQueryCommandContext

NewCmdInjectionGetQueryCommandContext creates a new http.Handler for the cmd injection get query command context operation

func (*CmdInjectionGetQueryCommandContext) ServeHTTP

type CmdInjectionGetQueryCommandContextDefault

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

CmdInjectionGetQueryCommandContextDefault Error occured

swagger:response cmdInjectionGetQueryCommandContextDefault

func NewCmdInjectionGetQueryCommandContextDefault

func NewCmdInjectionGetQueryCommandContextDefault(code int) *CmdInjectionGetQueryCommandContextDefault

NewCmdInjectionGetQueryCommandContextDefault creates CmdInjectionGetQueryCommandContextDefault with default headers values

func (*CmdInjectionGetQueryCommandContextDefault) SetStatusCode

func (o *CmdInjectionGetQueryCommandContextDefault) SetStatusCode(code int)

SetStatusCode sets the status to the cmd injection get query command context default response

func (*CmdInjectionGetQueryCommandContextDefault) WithStatusCode

WithStatusCode adds the status to the cmd injection get query command context default response

func (*CmdInjectionGetQueryCommandContextDefault) WriteResponse

WriteResponse to the client

type CmdInjectionGetQueryCommandContextHandler

type CmdInjectionGetQueryCommandContextHandler interface {
	Handle(CmdInjectionGetQueryCommandContextParams) middleware.Responder
}

CmdInjectionGetQueryCommandContextHandler interface for that can handle valid cmd injection get query command context params

type CmdInjectionGetQueryCommandContextHandlerFunc

type CmdInjectionGetQueryCommandContextHandlerFunc func(CmdInjectionGetQueryCommandContextParams) middleware.Responder

CmdInjectionGetQueryCommandContextHandlerFunc turns a function with the right signature into a cmd injection get query command context handler

func (CmdInjectionGetQueryCommandContextHandlerFunc) Handle

Handle executing the request and returning a response

type CmdInjectionGetQueryCommandContextOK

type CmdInjectionGetQueryCommandContextOK struct {

	/*The response when succesful query happens
	  In: Body
	*/
	Payload string `json:"body,omitempty"`
}

CmdInjectionGetQueryCommandContextOK returns the rendered response as a string

swagger:response cmdInjectionGetQueryCommandContextOK

func NewCmdInjectionGetQueryCommandContextOK

func NewCmdInjectionGetQueryCommandContextOK() *CmdInjectionGetQueryCommandContextOK

NewCmdInjectionGetQueryCommandContextOK creates CmdInjectionGetQueryCommandContextOK with default headers values

func (*CmdInjectionGetQueryCommandContextOK) SetPayload

func (o *CmdInjectionGetQueryCommandContextOK) SetPayload(payload string)

SetPayload sets the payload to the cmd injection get query command context o k response

func (*CmdInjectionGetQueryCommandContextOK) WithPayload

WithPayload adds the payload to the cmd injection get query command context o k response

func (*CmdInjectionGetQueryCommandContextOK) WriteResponse

WriteResponse to the client

type CmdInjectionGetQueryCommandContextParams

type CmdInjectionGetQueryCommandContextParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*the user provided input for the query vulnerability
	  Required: true
	  In: query
	*/
	Input string
	/*safety qualifier
	  Required: true
	  In: path
	*/
	Safety string
}

CmdInjectionGetQueryCommandContextParams contains all the bound params for the cmd injection get query command context operation typically these are obtained from a http.Request

swagger:parameters CmdInjectionGetQueryCommandContext

func NewCmdInjectionGetQueryCommandContextParams

func NewCmdInjectionGetQueryCommandContextParams() CmdInjectionGetQueryCommandContextParams

NewCmdInjectionGetQueryCommandContextParams creates a new CmdInjectionGetQueryCommandContextParams object

There are no default values defined in the spec.

func (*CmdInjectionGetQueryCommandContextParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewCmdInjectionGetQueryCommandContextParams() beforehand.

type CmdInjectionGetQueryCommandContextURL

type CmdInjectionGetQueryCommandContextURL struct {
	Safety string

	Input string
	// contains filtered or unexported fields
}

CmdInjectionGetQueryCommandContextURL generates an URL for the cmd injection get query command context operation

func (*CmdInjectionGetQueryCommandContextURL) Build

Build a url path and query string

func (*CmdInjectionGetQueryCommandContextURL) BuildFull

func (o *CmdInjectionGetQueryCommandContextURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CmdInjectionGetQueryCommandContextURL) Must

Must is a helper function to panic when the url builder returns an error

func (*CmdInjectionGetQueryCommandContextURL) SetBasePath

func (o *CmdInjectionGetQueryCommandContextURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*CmdInjectionGetQueryCommandContextURL) String

String returns the string representation of the path with query string

func (*CmdInjectionGetQueryCommandContextURL) StringFull

func (o *CmdInjectionGetQueryCommandContextURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CmdInjectionGetQueryCommandContextURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type CmdInjectionGetQueryCommandDefault

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

CmdInjectionGetQueryCommandDefault Error occured

swagger:response cmdInjectionGetQueryCommandDefault

func NewCmdInjectionGetQueryCommandDefault

func NewCmdInjectionGetQueryCommandDefault(code int) *CmdInjectionGetQueryCommandDefault

NewCmdInjectionGetQueryCommandDefault creates CmdInjectionGetQueryCommandDefault with default headers values

func (*CmdInjectionGetQueryCommandDefault) SetStatusCode

func (o *CmdInjectionGetQueryCommandDefault) SetStatusCode(code int)

SetStatusCode sets the status to the cmd injection get query command default response

func (*CmdInjectionGetQueryCommandDefault) WithStatusCode

WithStatusCode adds the status to the cmd injection get query command default response

func (*CmdInjectionGetQueryCommandDefault) WriteResponse

WriteResponse to the client

type CmdInjectionGetQueryCommandHandler

type CmdInjectionGetQueryCommandHandler interface {
	Handle(CmdInjectionGetQueryCommandParams) middleware.Responder
}

CmdInjectionGetQueryCommandHandler interface for that can handle valid cmd injection get query command params

type CmdInjectionGetQueryCommandHandlerFunc

type CmdInjectionGetQueryCommandHandlerFunc func(CmdInjectionGetQueryCommandParams) middleware.Responder

CmdInjectionGetQueryCommandHandlerFunc turns a function with the right signature into a cmd injection get query command handler

func (CmdInjectionGetQueryCommandHandlerFunc) Handle

Handle executing the request and returning a response

type CmdInjectionGetQueryCommandOK

type CmdInjectionGetQueryCommandOK struct {

	/*The response when succesful query happens
	  In: Body
	*/
	Payload string `json:"body,omitempty"`
}

CmdInjectionGetQueryCommandOK returns the rendered response as a string

swagger:response cmdInjectionGetQueryCommandOK

func NewCmdInjectionGetQueryCommandOK

func NewCmdInjectionGetQueryCommandOK() *CmdInjectionGetQueryCommandOK

NewCmdInjectionGetQueryCommandOK creates CmdInjectionGetQueryCommandOK with default headers values

func (*CmdInjectionGetQueryCommandOK) SetPayload

func (o *CmdInjectionGetQueryCommandOK) SetPayload(payload string)

SetPayload sets the payload to the cmd injection get query command o k response

func (*CmdInjectionGetQueryCommandOK) WithPayload

WithPayload adds the payload to the cmd injection get query command o k response

func (*CmdInjectionGetQueryCommandOK) WriteResponse

func (o *CmdInjectionGetQueryCommandOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CmdInjectionGetQueryCommandParams

type CmdInjectionGetQueryCommandParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*the user provided input for the query vulnerability
	  Required: true
	  In: query
	*/
	Input string
	/*safety qualifier
	  Required: true
	  In: path
	*/
	Safety string
}

CmdInjectionGetQueryCommandParams contains all the bound params for the cmd injection get query command operation typically these are obtained from a http.Request

swagger:parameters CmdInjectionGetQueryCommand

func NewCmdInjectionGetQueryCommandParams

func NewCmdInjectionGetQueryCommandParams() CmdInjectionGetQueryCommandParams

NewCmdInjectionGetQueryCommandParams creates a new CmdInjectionGetQueryCommandParams object

There are no default values defined in the spec.

func (*CmdInjectionGetQueryCommandParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewCmdInjectionGetQueryCommandParams() beforehand.

type CmdInjectionGetQueryCommandURL

type CmdInjectionGetQueryCommandURL struct {
	Safety string

	Input string
	// contains filtered or unexported fields
}

CmdInjectionGetQueryCommandURL generates an URL for the cmd injection get query command operation

func (*CmdInjectionGetQueryCommandURL) Build

Build a url path and query string

func (*CmdInjectionGetQueryCommandURL) BuildFull

func (o *CmdInjectionGetQueryCommandURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CmdInjectionGetQueryCommandURL) Must

func (o *CmdInjectionGetQueryCommandURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*CmdInjectionGetQueryCommandURL) SetBasePath

func (o *CmdInjectionGetQueryCommandURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*CmdInjectionGetQueryCommandURL) String

String returns the string representation of the path with query string

func (*CmdInjectionGetQueryCommandURL) StringFull

func (o *CmdInjectionGetQueryCommandURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CmdInjectionGetQueryCommandURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

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