sql_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 SQLInjectionFrontOKCode int = 200

SQLInjectionFrontOKCode is the HTTP code returned for type SQLInjectionFrontOK

View Source
const SQLInjectionGetQueryExecOKCode int = 200

SQLInjectionGetQueryExecOKCode is the HTTP code returned for type SQLInjectionGetQueryExecOK

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLInjectionFront

type SQLInjectionFront struct {
	Context *middleware.Context
	Handler SQLInjectionFrontHandler
}
SQLInjectionFront swagger:route GET /sqlInjection sql_injection sqlInjectionFront

front page of the SQL Injection vulnerability

func NewSQLInjectionFront

func NewSQLInjectionFront(ctx *middleware.Context, handler SQLInjectionFrontHandler) *SQLInjectionFront

NewSQLInjectionFront creates a new http.Handler for the SQL injection front operation

func (*SQLInjectionFront) ServeHTTP

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

type SQLInjectionFrontDefault

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

SQLInjectionFrontDefault error occured

swagger:response sqlInjectionFrontDefault

func NewSQLInjectionFrontDefault

func NewSQLInjectionFrontDefault(code int) *SQLInjectionFrontDefault

NewSQLInjectionFrontDefault creates SQLInjectionFrontDefault with default headers values

func (*SQLInjectionFrontDefault) SetStatusCode

func (o *SQLInjectionFrontDefault) SetStatusCode(code int)

SetStatusCode sets the status to the SQL injection front default response

func (*SQLInjectionFrontDefault) WithStatusCode

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

WithStatusCode adds the status to the SQL injection front default response

func (*SQLInjectionFrontDefault) WriteResponse

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

WriteResponse to the client

type SQLInjectionFrontHandler

type SQLInjectionFrontHandler interface {
	Handle(SQLInjectionFrontParams) middleware.Responder
}

SQLInjectionFrontHandler interface for that can handle valid SQL injection front params

type SQLInjectionFrontHandlerFunc

type SQLInjectionFrontHandlerFunc func(SQLInjectionFrontParams) middleware.Responder

SQLInjectionFrontHandlerFunc turns a function with the right signature into a SQL injection front handler

func (SQLInjectionFrontHandlerFunc) Handle

Handle executing the request and returning a response

type SQLInjectionFrontOK

type SQLInjectionFrontOK struct {

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

SQLInjectionFrontOK served front end for SQL Injection page of Swagger API

swagger:response sqlInjectionFrontOK

func NewSQLInjectionFrontOK

func NewSQLInjectionFrontOK() *SQLInjectionFrontOK

NewSQLInjectionFrontOK creates SQLInjectionFrontOK with default headers values

func (*SQLInjectionFrontOK) SetPayload

func (o *SQLInjectionFrontOK) SetPayload(payload string)

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

func (*SQLInjectionFrontOK) WithPayload

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

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

func (*SQLInjectionFrontOK) WriteResponse

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

WriteResponse to the client

type SQLInjectionFrontParams

type SQLInjectionFrontParams struct {

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

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

swagger:parameters SQLInjectionFront

func NewSQLInjectionFrontParams

func NewSQLInjectionFrontParams() SQLInjectionFrontParams

NewSQLInjectionFrontParams creates a new SQLInjectionFrontParams object

There are no default values defined in the spec.

func (*SQLInjectionFrontParams) BindRequest

func (o *SQLInjectionFrontParams) 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 NewSQLInjectionFrontParams() beforehand.

type SQLInjectionFrontURL

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

SQLInjectionFrontURL generates an URL for the SQL injection front operation

func (*SQLInjectionFrontURL) Build

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

Build a url path and query string

func (*SQLInjectionFrontURL) BuildFull

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

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

func (*SQLInjectionFrontURL) Must

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

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

func (*SQLInjectionFrontURL) SetBasePath

func (o *SQLInjectionFrontURL) 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 (*SQLInjectionFrontURL) String

func (o *SQLInjectionFrontURL) String() string

String returns the string representation of the path with query string

func (*SQLInjectionFrontURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SQLInjectionFrontURL) WithBasePath

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

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 SQLInjectionGetQueryExec

type SQLInjectionGetQueryExec struct {
	Context *middleware.Context
	Handler SQLInjectionGetQueryExecHandler
}
SQLInjectionGetQueryExec swagger:route GET /sqlInjection/sqlite3.exec/query/{safety} sql_injection sqlInjectionGetQueryExec

demonstrates SQL Injection via query, with vulnerable function sqlite3.exec

func NewSQLInjectionGetQueryExec

func NewSQLInjectionGetQueryExec(ctx *middleware.Context, handler SQLInjectionGetQueryExecHandler) *SQLInjectionGetQueryExec

NewSQLInjectionGetQueryExec creates a new http.Handler for the SQL injection get query exec operation

func (*SQLInjectionGetQueryExec) ServeHTTP

type SQLInjectionGetQueryExecDefault

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

SQLInjectionGetQueryExecDefault Error occured

swagger:response sqlInjectionGetQueryExecDefault

func NewSQLInjectionGetQueryExecDefault

func NewSQLInjectionGetQueryExecDefault(code int) *SQLInjectionGetQueryExecDefault

NewSQLInjectionGetQueryExecDefault creates SQLInjectionGetQueryExecDefault with default headers values

func (*SQLInjectionGetQueryExecDefault) SetStatusCode

func (o *SQLInjectionGetQueryExecDefault) SetStatusCode(code int)

SetStatusCode sets the status to the SQL injection get query exec default response

func (*SQLInjectionGetQueryExecDefault) WithStatusCode

WithStatusCode adds the status to the SQL injection get query exec default response

func (*SQLInjectionGetQueryExecDefault) WriteResponse

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

WriteResponse to the client

type SQLInjectionGetQueryExecHandler

type SQLInjectionGetQueryExecHandler interface {
	Handle(SQLInjectionGetQueryExecParams) middleware.Responder
}

SQLInjectionGetQueryExecHandler interface for that can handle valid SQL injection get query exec params

type SQLInjectionGetQueryExecHandlerFunc

type SQLInjectionGetQueryExecHandlerFunc func(SQLInjectionGetQueryExecParams) middleware.Responder

SQLInjectionGetQueryExecHandlerFunc turns a function with the right signature into a SQL injection get query exec handler

func (SQLInjectionGetQueryExecHandlerFunc) Handle

Handle executing the request and returning a response

type SQLInjectionGetQueryExecOK

type SQLInjectionGetQueryExecOK struct {

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

SQLInjectionGetQueryExecOK returns the rendered response as a string

swagger:response sqlInjectionGetQueryExecOK

func NewSQLInjectionGetQueryExecOK

func NewSQLInjectionGetQueryExecOK() *SQLInjectionGetQueryExecOK

NewSQLInjectionGetQueryExecOK creates SQLInjectionGetQueryExecOK with default headers values

func (*SQLInjectionGetQueryExecOK) SetPayload

func (o *SQLInjectionGetQueryExecOK) SetPayload(payload string)

SetPayload sets the payload to the sql injection get query exec o k response

func (*SQLInjectionGetQueryExecOK) WithPayload

WithPayload adds the payload to the sql injection get query exec o k response

func (*SQLInjectionGetQueryExecOK) WriteResponse

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

WriteResponse to the client

type SQLInjectionGetQueryExecParams

type SQLInjectionGetQueryExecParams 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
}

SQLInjectionGetQueryExecParams contains all the bound params for the SQL injection get query exec operation typically these are obtained from a http.Request

swagger:parameters SQLInjectionGetQueryExec

func NewSQLInjectionGetQueryExecParams

func NewSQLInjectionGetQueryExecParams() SQLInjectionGetQueryExecParams

NewSQLInjectionGetQueryExecParams creates a new SQLInjectionGetQueryExecParams object

There are no default values defined in the spec.

func (*SQLInjectionGetQueryExecParams) 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 NewSQLInjectionGetQueryExecParams() beforehand.

type SQLInjectionGetQueryExecURL

type SQLInjectionGetQueryExecURL struct {
	Safety string

	Input string
	// contains filtered or unexported fields
}

SQLInjectionGetQueryExecURL generates an URL for the SQL injection get query exec operation

func (*SQLInjectionGetQueryExecURL) Build

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

Build a url path and query string

func (*SQLInjectionGetQueryExecURL) BuildFull

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

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

func (*SQLInjectionGetQueryExecURL) Must

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

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

func (*SQLInjectionGetQueryExecURL) SetBasePath

func (o *SQLInjectionGetQueryExecURL) 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 (*SQLInjectionGetQueryExecURL) String

func (o *SQLInjectionGetQueryExecURL) String() string

String returns the string representation of the path with query string

func (*SQLInjectionGetQueryExecURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SQLInjectionGetQueryExecURL) 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