sensitive

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detection

func Detection(url, req, body string)

Detection 页面敏感信息检测

func KeyDetection

func KeyDetection(url, body string)

KeyDetection 页面敏感信息检测

func Wih added in v1.1.0

func Wih(url, req, body string)

Types

type ErrorMessage

type ErrorMessage struct {
	Text string `json:"text"`
	Type string `json:"type"`
}

func PageErrorMessageCheck

func PageErrorMessageCheck(url, req, body string) []ErrorMessage

type Regexp added in v1.0.7

type Regexp struct {
	Re  *regexp.Regexp
	Msg ErrorMessage
}

type Rule added in v1.1.0

type Rule struct {
	ID      string `yaml:"id"`
	Enabled bool   `yaml:"enabled"`
	Pattern string `yaml:"pattern"`
}

Rule 结构体代表YAML文件中的一条规则

type Rules added in v1.1.0

type Rules struct {
	Rules []Rule `yaml:"rules"`
}

Rules 结构体包含多个Rule

Jump to

Keyboard shortcuts

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