MCPcopy Index your code
hub / github.com/SummerSec/SpringExploit / addPoc

Function addPoc

cmd/commons/attack/attack.go:30–49  ·  view source on GitHub ↗
(pocs map[string]interface{})

Source from the content-addressed store, hash-verified

28}
29
30func addPoc(pocs map[string]interface{}) map[string]interface{} {
31 log.Debug("[*] Add PoC")
32 // 判断url是否存活
33 pocs["ISAlIVEURL"] = &poc.IsAliveUrl{}
34
35 // TODO 添加 2022 poc
36 //pocs["demo"] = &poc.Demo{}
37 pocs["CVE202226134"] = &_022.CVE202226134{}
38 pocs["CVE202222947"] = &_022.CVE202222947{}
39 pocs["CVE202222963"] = &_022.CVE202222963{}
40 pocs["CVE202222965"] = &_022.CVE202222965{}
41 pocs["CVE20221388"] = &_022.CVE20221388{}
42
43 // TODO 添加2021 poc
44 pocs["CVE202122986"] = &_021.CVE202122986{}
45 pocs["CVE202126084"] = &_021.CVE202126084{}
46
47 return pocs
48
49}
50
51func attack(url string, pocs map[string]interface{}, hashmap map[string]interface{}) {
52 p := hashmap["Pocs"].(string)

Callers 1

SeviceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected