Documentation ¶
Overview ¶
Package securityscanner checks the website for XSS, SQL Injection, blacklisting status, configuration and out-of-date software.
Index ¶
- Constants
- Variables
- func DeregisterPlugin(name string)
- func HttpGet(uri string, timeout time.Duration) (gorequest.Response, string, error)
- func HttpPost(uri string, timeout time.Duration, params url.Values) (gorequest.Response, string, error)
- func LoadConfig() bool
- func RegisterPlugin(name string, plugin PluginInterface)
- func StartRPC()
- type Plugin
- type PluginInterface
- type ScannerArgs
- type ScannerConfig
- type ScannerService
- type ScannerServiceArgs
- type ScannerServiceResult
Constants ¶
View Source
const ( GREEN = "GREEN" YELLOW = "YELLOW" RED = "RED" )
Variables ¶
View Source
var DefaultTimeout time.Duration = 12 * time.Second
DefualtTimeout for GET/POST calls
View Source
var ErrInvalidConfigurationOption = errors.New("invalid configuration option")
View Source
var StatusColors = []string{GREEN, YELLOW, RED}
Allowed status colors for tests
Functions ¶
func DeregisterPlugin ¶
func DeregisterPlugin(name string)
func HttpPost ¶
func HttpPost(uri string, timeout time.Duration, params url.Values) (gorequest.Response, string, error)
HtttGet do POST call
func LoadConfig ¶
func LoadConfig() bool
func RegisterPlugin ¶
func RegisterPlugin(name string, plugin PluginInterface)
Types ¶
type Plugin ¶
type Plugin struct { PluginInterface *ScannerArgs }
func (*Plugin) SetArgs ¶
func (p *Plugin) SetArgs(args *ScannerArgs)
type PluginInterface ¶
type PluginInterface interface { Scan() (map[string]interface{}, error) Name() string Code() string Info() map[string]interface{} SetArgs(args *ScannerArgs) }
func GetAllPlugins ¶
func GetAllPlugins() (allPlugins []PluginInterface)
func GetPlugin ¶
func GetPlugin(name string) (plugin PluginInterface, err error)
type ScannerArgs ¶
type ScannerConfig ¶
type ScannerConfig interface{}
type ScannerService ¶
type ScannerService string
func (*ScannerService) All ¶
func (s *ScannerService) All(r *http.Request, args *ScannerServiceArgs, result *ScannerServiceResult) error
All scans requested Domain for all registered plugins
type ScannerServiceArgs ¶
type ScannerServiceResult ¶
Click to show internal directories.
Click to hide internal directories.