xray

package
v1.8.40 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Detail

type Detail struct {
	Author      string   `yaml:"author"`
	Links       []string `yaml:"links"`
	Description string   `yaml:"description"`
}

type Output

type Output struct {
	Search string `yaml:"search"`
	Home   string `yaml:"home"`
}

type Poc

type Poc struct {
	Name       string            `yaml:"name"`
	Transport  string            `yaml:"transport"`
	Set        yaml.MapSlice     `yaml:"set"`
	Rules      map[string]Rule   `json:"rules"`
	Groups     map[string][]Rule `json:"groups"`
	Expression string            `yaml:"expression"`
	Detail     Detail            `yaml:"detail"`
}

func LoadAllPoc

func LoadAllPoc(pocDir string) (pocs []*Poc, err error)

type Rule

type Rule struct {
	Request    RuleRequest `yaml:"request"`
	Expression string      `yaml:"expression"`
	Output     Output      `yaml:"output"`
}

func (*Rule) ReplaceSearch

func (rule *Rule) ReplaceSearch(resp *proto.Response, varMap map[string]interface{}) map[string]interface{}

ReplaceSearch search

func (*Rule) ReplaceSet

func (rule *Rule) ReplaceSet(varMap map[string]interface{})

type RuleRequest

type RuleRequest struct {
	Cache           bool              `yaml:"cache"`
	Method          string            `yaml:"method"`
	Path            string            `yaml:"path"`
	Headers         map[string]string `yaml:"headers"`
	Body            string            `yaml:"body"`
	FollowRedirects bool              `yaml:"follow_redirects"`
	Content         string            `yaml:"content"`
	ReadTimeout     string            `yaml:"read_timeout"`
	ConnectionID    string            `yaml:"connection_id"`
}

Jump to

Keyboard shortcuts

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