Documentation ¶
Index ¶
- Constants
- Variables
- func CheckIfSudoNoPasswd(localLogger *logrus.Entry) error
- func DetectPlatforms(localLogger *logrus.Entry)
- func GetScanResults() (results models.ScanResults, err error)
- func InitServers(localLogger *logrus.Entry)
- func Prepare() []error
- func PrintSSHableServerNames()
- func Scan() []error
- type CvePacksInfo
- type CvePacksList
Constants ¶
View Source
const ( Outside = iota Header = iota Content = iota )
state
Variables ¶
View Source
var Log *logrus.Entry
Log for localhsot
Functions ¶
func CheckIfSudoNoPasswd ¶ added in v0.1.5
CheckIfSudoNoPasswd checks whether vuls can sudo with nopassword via SSH
func DetectPlatforms ¶ added in v0.1.5
DetectPlatforms detects the platform of each servers.
func GetScanResults ¶
func GetScanResults() (results models.ScanResults, err error)
GetScanResults returns Scan Resutls
func InitServers ¶
InitServers detect the kind of OS distribution of target servers
func PrintSSHableServerNames ¶ added in v0.1.5
func PrintSSHableServerNames()
PrintSSHableServerNames print SSH-able servernames
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
Click to show internal directories.
Click to hide internal directories.