securityscanner

package
v0.0.0-...-5bc0ea5 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2017 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package securityscanner checks the website for XSS, SQL Injection, blacklisting status, configuration and out-of-date software.

Index

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 HttpGet

func HttpGet(uri string, timeout time.Duration) (gorequest.Response, string, error)

HtttGet do GET call

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)

func StartRPC

func StartRPC()

StartRPC runs JSON RPC server listening for scan requests

Types

type Plugin

type Plugin struct {
	PluginInterface
	*ScannerArgs
}

func (*Plugin) SetArgs

func (p *Plugin) SetArgs(args *ScannerArgs)

func (*Plugin) Validate

func (p *Plugin) Validate()

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 ScannerArgs struct {
	Domain   string
	Protocol string
}

type ScannerConfig

type ScannerConfig interface{}

type ScannerService

type ScannerService string

func (*ScannerService) All

All scans requested Domain for all registered plugins

type ScannerServiceArgs

type ScannerServiceArgs struct {
	Lang    translate.Language
	Domain  string
	NoCache bool
}

type ScannerServiceResult

type ScannerServiceResult struct {
	Scanners map[string]interface{}
	Took     float64
}

Directories

Path Synopsis
Package logger override logrus and set configuration paths
Package logger override logrus and set configuration paths
ip
waf

Jump to

Keyboard shortcuts

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