asset_check

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Pocs embed.FS
View Source
var Timeout = 15 * time.Second

Functions

func InitDefaultPoc

func InitDefaultPoc()

func ParseUrls

func ParseUrls(word string, r Rule) map[string]string

Types

type Config

type Config struct {
	Wg      *sync.WaitGroup
	Ch      chan struct{}
	Bar     *progressbar.ProgressBar
	Results []string
}

func (*Config) Check

func (cfg *Config) Check(url, method, region string, exp []int)

type DomainFormat

type DomainFormat struct {
	Subdomain, Domain, TLD string
	ICANN                  bool
}

type Payload

type Payload struct {
	Urls   map[string]string
	Method string
	Exp    []int
}

func ParsePayloads

func ParsePayloads(words []string) ([]Payload, int)

type Poc

type Poc struct {
	Name  string `yaml:"name"`
	Rules []Rule `yaml:"rules"`
}

type Rule

type Rule struct {
	Tag        string   `yaml:"tag"`
	Regions    []string `yaml:"regions"`
	Traversal  bool     `yaml:"region_traversal"`
	Method     string   `yaml:"method"`
	Format     []string `yaml:"format"`
	Expression []int    `yaml:"expression"`
}

Jump to

Keyboard shortcuts

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