Documentation
¶
Overview ¶
Package scanner ...
Package scanner ...
Package scanner ...
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conf ¶
type Conf struct { Output string `json:"output"` Tests []*Request `json:"tests"` Threads int `json:"threads"` Timeout string `json:"timeout"` Verbose bool `json:"verbose"` }
Conf structure to hold configuration settings for the scna
type Request ¶
type Request struct { URL string `json:"url"` Headers Headers `json:"headers"` Method string `json:"method"` Proxy string `json:"proxy"` }
Request structure to hold configuration settings for each request
type Scanner ¶
Scanner structure to hold the client connection we'll be making requests from as well as the scanner configuration and results from the scan
func (*Scanner) CreateOutputFile ¶
CreateOutputFile creates a new file and writes the test results to it
func (*Scanner) CreateTests ¶
CreateTests initializes our array of tests
func (*Scanner) SaveResults ¶
SaveResults saves the scan results to the provided directory file.
type Test ¶
type Test struct { Acao string `json:"access-control-allow-origins"` Acac string `json:"access-control-allow-credentials"` Headers map[string]string `json:"headers"` Method string `json:"method"` Origin string `json:"origin"` Test string `json:"test"` URL string `json:"url"` }
Test struct holds all our data related to the test
Click to show internal directories.
Click to hide internal directories.