Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) Check(ip net.IP) (matched bool, value string, itemType string, err error)
- func (c *Client) CheckCDN(ip net.IP) (matched bool, value string, err error)
- func (c *Client) CheckCloud(ip net.IP) (matched bool, value string, err error)
- func (c *Client) CheckSuffix(fqdns ...string) (bool, string, error)
- func (c *Client) CheckWAF(ip net.IP) (matched bool, value string, err error)
- func (c *Client) CheckWappalyzer(data map[string]struct{}) (bool, string, error)
- type InputCompiled
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultCDNProviders string DefaultWafProviders string DefaultCloudProviders string )
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client checks for CDN based IPs which should be excluded during scans since they belong to third party firewalls.
func (*Client) Check ¶
Check checks if an IP is contained in the denylist
It includes CDN, WAF and Cloud. Basically all varaint of individual functions
func (*Client) CheckCloud ¶ added in v1.0.0
CheckCloud checks if an IP is contained in the cloud denylist
func (*Client) CheckSuffix ¶ added in v1.0.0
CheckFQDN checks if fqdns are known cloud ones
type InputCompiled ¶ added in v1.0.0
type InputCompiled struct {
// CDN contains a list of ranges for CDN cidrs
CDN map[string][]string `yaml:"cdn,omitempty" json:"cdn,omitempty"`
// WAF contains a list of ranges for WAF cidrs
WAF map[string][]string `yaml:"waf,omitempty" json:"waf,omitempty"`
// Cloud contains a list of ranges for Cloud cidrs
Cloud map[string][]string `yaml:"cloud,omitempty" json:"cloud,omitempty"`
// Common contains a list of suffixes for major sources
Common map[string][]string `yaml:"common,omitempty" json:"common,omitempty"`
}
InputCompiled contains a compiled list of input structure
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
cdncheck
command
|
|
|
functional-test
command
|
|
|
generate-index
command
|
|
|
integration-test
command
|
|
|
internal
|
|
Click to show internal directories.
Click to hide internal directories.

