Documentation ¶
Index ¶
- func Header(headers http.Header) string
- func NewSession(rateLimit ...int)
- func ValidateProxyURL(proxy string) (string, error)
- type Param
- type Response
- func Request(target string, method string, postdata string, isredirect bool, ...) (*Response, error)
- func RequestBasic(username string, password string, target string, method string, ...) (*Response, error)
- func UploadRequest(target string, params map[string]string, name, path string) (*Response, error)
- type Session
- type Variations
- func (p Variations) Len() int
- func (p Variations) Less(i, j int) bool
- func (p *Variations) Release() string
- func (p Variations) Set(key string, value string) error
- func (p *Variations) SetPayload(uri string, payload string, method string, key ...[]string) []string
- func (p *Variations) SetPayloadByIndex(index int, uri string, payload string, method string) string
- func (p Variations) Swap(i, j int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSession ¶
func NewSession(rateLimit ...int)
func ValidateProxyURL ¶
Types ¶
type Param ¶
type Param struct { // Name of the posted parameter. Name string `json:"name"` // Value of the posted parameter. Value string `json:"value,omitempty"` // Filename of a posted file. Filename string `json:"fileName,omitempty"` // ContentType is the content type of posted file. ContentType string `json:"contentType,omitempty"` FileHeader textproto.MIMEHeader FileSize int64 FileContent []byte IsFile bool Boundary string FilenotFound bool IsBase64 bool Index int // }
Param describes an individual posted parameter.
type Response ¶
type Response struct { Status string StatusCode int Body string RequestDump string ResponseDump string Header http.Header ContentLength int RequestUrl string Location string ServerDurationMs float64 // 服务器响应时间 }
func RequestBasic ¶
type Variations ¶
type Variations struct { // MimeType is the MIME type of the posted data. MimeType string `json:"mimeType"` // Params is a list of posted parameters (in case of URL encoded parameters). Params []Param `json:"params"` // OriginalParams 存储原始的值 OriginalParams []Param `json:"params"` // Text contains the posted data. Although its type is string, it may contain // binary data. Text string `json:"text"` }
func ParseUri ¶
func ParseUri(uri string, body []byte, method string, contentType string, headers map[string]string) (*Variations, error)
ParseUri 对请求进行格式化
func (Variations) Len ¶
func (p Variations) Len() int
func (*Variations) Release ¶
func (p *Variations) Release() string
func (*Variations) SetPayload ¶
func (*Variations) SetPayloadByIndex ¶
SetPayloadByIndex 根据索引设置payload
GET 返回 http://testphp.vulnweb.com/listproducts.php?artist=((,”"(,"","((
POST 返回 artist=')”,)'(())')(
func (Variations) Swap ¶
func (p Variations) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.