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

Method SendPoc

cmd/commons/poc/IsAliveUrl.go:12–25  ·  view source on GitHub ↗
(target string, hashmap map[string]interface{})

Source from the content-addressed store, hash-verified

10type IsAliveUrl struct{}
11
12func (t IsAliveUrl) SendPoc(target string, hashmap map[string]interface{}) {
13 reqmap := req2.NewReqInfoToMap(hashmap)
14 reqmap["url"] = target
15 reqmap["method"] = "HEAD"
16 headers := map[string]string{
17 "User-Agent": utils.GetUA(),
18 }
19 reqmap["headers"] = headers
20 resp := utils.Send(reqmap)
21 if t.CheckExp(resp, target, hashmap) {
22 log.Infof("[+] %s is alive", target)
23 }
24
25}
26
27func (t IsAliveUrl) SaveResult(target string, file string) {
28 // nothing to do

Callers

nothing calls this directly

Calls 3

CheckExpMethod · 0.95
GetUAFunction · 0.92
SendFunction · 0.92

Tested by

no test coverage detected