mirror of
https://github.com/teamchong/pxpipe.git
synced 2026-07-22 02:02:51 +02:00
20 lines
540 B
Diff
20 lines
540 B
Diff
diff --git a/wordpress/wordpress.go b/wordpress/wordpress.go
|
|
index 2d44b9f..25e9ddf 100644
|
|
--- a/wordpress/wordpress.go
|
|
+++ b/wordpress/wordpress.go
|
|
@@ -235,6 +235,14 @@ func extractToVulnInfos(pkgName string, cves []WpCveInfo) (vinfos []models.VulnI
|
|
return
|
|
}
|
|
|
|
+func searchCache(name string, wpVulnCaches *map[string]string) (string, bool) {
|
|
+ value, ok := (*wpVulnCaches)[name]
|
|
+ if ok {
|
|
+ return value, true
|
|
+ }
|
|
+ return "", false
|
|
+}
|
|
+
|
|
func httpRequest(url, token string) (string, error) {
|
|
retry := 1
|
|
util.Log.Debugf("%s", url)
|