jsonp

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIsSensitiveKey

func CheckIsSensitiveKey(key string) (bool, error)

func CheckJSIsCallback

func CheckJSIsCallback(queryMap url.Values) (bool, string, error)

func CheckJsRespAst

func CheckJsRespAst(content string, funcName string) (bool, error)

func UrlParser

func UrlParser(jsUrl string) (url.Values, string, error)

Types

type JsonpInfo

type JsonpInfo struct {
	Request  string
	Response string
}

func CheckSenseJsonp

func CheckSenseJsonp(in *input.CrawlResult, client *httpx.Client) (bool, *JsonpInfo, error)

func GetJsResponse

func GetJsResponse(in *input.CrawlResult, client *httpx.Client) (string, *JsonpInfo, error)

type Plugin

type Plugin struct {
	SeenRequests sync.Map
}

func (*Plugin) IsScanned

func (p *Plugin) IsScanned(key string) bool

func (*Plugin) Name

func (p *Plugin) Name() string

func (*Plugin) Scan

func (p *Plugin) Scan(target string, path string, in *input.CrawlResult, client *httpx.Client)

Jump to

Keyboard shortcuts

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