diff --git a/config/config.go b/config/config.go index ed7f0081..c3fd300c 100644 --- a/config/config.go +++ b/config/config.go @@ -339,7 +339,7 @@ type AzureConf struct { // WpScanConf is wpscan.com config type WpScanConf struct { - Token string `toml:"Token,omitempty" json:"-"` + Token string `toml:"token,omitempty" json:"-"` DetectInactive bool `toml:"detectInactive,omitempty" json:"detectInactive,omitempty"` } diff --git a/report/report.go b/report/report.go index c0fefab8..19fc433c 100644 --- a/report/report.go +++ b/report/report.go @@ -227,7 +227,7 @@ func DetectGitHubCves(r *models.ScanResult, githubConfs map[string]c.GitHubConf) // DetectWordPressCves detects CVEs of WordPress func DetectWordPressCves(r *models.ScanResult, wpCnf *c.WpScanConf) error { - if len(r.Packages) == 0 { + if len(r.WordPressPackages) == 0 { return nil } util.Log.Infof("Detect WordPress CVE. pkgs: %d ", len(r.WordPressPackages))