scan

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2019 License: GPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Outside = iota
	Header  = iota
	Content = iota
)

state

Variables

This section is empty.

Functions

func CheckDependencies added in v0.3.0

func CheckDependencies(timeoutSec int)

CheckDependencies checks dependencies are installed on target servers.

func CheckIfSudoNoPasswd added in v0.1.5

func CheckIfSudoNoPasswd(timeoutSec int)

CheckIfSudoNoPasswd checks whether vuls can sudo with nopassword via SSH

func CheckScanModes added in v0.5.0

func CheckScanModes() error

CheckScanModes checks scan mode

func DetectPlatforms added in v0.1.5

func DetectPlatforms(timeoutSec int)

DetectPlatforms detects the platform of each servers.

func EnsureResultDir added in v0.5.0

func EnsureResultDir(scannedAt time.Time) (currentDir string, err error)

EnsureResultDir ensures the directory for scan results

func InitServers

func InitServers(timeoutSec int) error

InitServers detect the kind of OS distribution of target servers

func PrintSSHableServerNames added in v0.1.5

func PrintSSHableServerNames() bool

PrintSSHableServerNames print SSH-able servernames

func Scan

func Scan(timeoutSec int) error

Scan scan

func ViaHTTP added in v0.5.0

func ViaHTTP(header http.Header, body string) (models.ScanResult, error)

ViaHTTP scans servers by HTTP header and body

Types

type DetectedCveID added in v0.3.0

type DetectedCveID struct {
	CveID      string
	Confidence models.Confidence
}

DetectedCveID has CveID, Confidence and DetectionMethod fields LenientMatching will be true if this vulnerability is not detected by accurate version matching. see https://github.com/future-architect/vuls/pull/328

Jump to

Keyboard shortcuts

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