scan

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: AGPL-3.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 DetectIPSs added in v0.8.3

func DetectIPSs(timeoutSec int)

DetectIPSs detects the IPS of each servers.

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 GetScanResults

func GetScanResults(scannedAt time.Time, timeoutSec int) (results models.ScanResults, err error)

GetScanResults returns ScanResults from

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

type DummyFileInfo added in v0.9.9

type DummyFileInfo struct{}

func (*DummyFileInfo) IsDir added in v0.9.9

func (d *DummyFileInfo) IsDir() bool

func (*DummyFileInfo) ModTime added in v0.9.9

func (d *DummyFileInfo) ModTime() time.Time

func (*DummyFileInfo) Mode added in v0.9.9

func (d *DummyFileInfo) Mode() os.FileMode

func (*DummyFileInfo) Name added in v0.9.9

func (d *DummyFileInfo) Name() string

func (*DummyFileInfo) Size added in v0.9.9

func (d *DummyFileInfo) Size() int64

func (*DummyFileInfo) Sys added in v0.9.9

func (d *DummyFileInfo) Sys() interface{}

Jump to

Keyboard shortcuts

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