scan

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2016 License: GPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

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

state

Variables

Log for localhsot

Functions

func CheckIfSudoNoPasswd added in v0.1.5

func CheckIfSudoNoPasswd(localLogger *logrus.Entry) error

CheckIfSudoNoPasswd checks whether vuls can sudo with nopassword via SSH

func DetectPlatforms added in v0.1.5

func DetectPlatforms(localLogger *logrus.Entry)

DetectPlatforms detects the platform of each servers.

func GetScanResults

func GetScanResults() (results models.ScanResults, err error)

GetScanResults returns Scan Resutls

func InitServers

func InitServers(localLogger *logrus.Entry)

InitServers detect the kind of OS distribution of target servers

func Prepare

func Prepare() []error

Prepare installs requred packages to scan vulnerabilities.

func PrintSSHableServerNames added in v0.1.5

func PrintSSHableServerNames()

PrintSSHableServerNames print SSH-able servernames

func Scan

func Scan() []error

Scan scan

Types

type CvePacksInfo

type CvePacksInfo struct {
	CveID            string
	CveDetail        cve.CveDetail
	Packs            models.PackageInfoList
	DistroAdvisories []models.DistroAdvisory // for Aamazon, RHEL, FreeBSD
	CpeNames         []string
}

CvePacksInfo hold the CVE information.

type CvePacksList

type CvePacksList []CvePacksInfo

CvePacksList have CvePacksInfo list, getter/setter, sortable methods.

func (CvePacksList) FindByCveID

func (s CvePacksList) FindByCveID(cveID string) (pi CvePacksInfo, found bool)

FindByCveID find by CVEID

func (CvePacksList) Len

func (s CvePacksList) Len() int

Len implement Sort Interface

func (CvePacksList) Less

func (s CvePacksList) Less(i, j int) bool

Less implement Sort Interface

func (CvePacksList) Swap

func (s CvePacksList) Swap(i, j int)

Swap implement Sort Interface

Jump to

Keyboard shortcuts

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