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

Method CheckExp

cmd/commons/poc/IsAliveUrl.go:31–48  ·  view source on GitHub ↗
(resp *req.Response, target string, hashmap map[string]interface{})

Source from the content-addressed store, hash-verified

29}
30
31func (t IsAliveUrl) CheckExp(resp *req.Response, target string, hashmap map[string]interface{}) bool {
32 reqmap := req2.NewReqInfoToMap(hashmap)
33 reqmap["url"] = target
34 reqmap["method"] = "HEAD"
35 reqmap["redirect"] = true
36 headers := map[string]string{
37 "User-Agent": utils.GetUA(),
38 }
39 reqmap["headers"] = headers
40 resp2 := utils.Send(reqmap)
41 intcode := resp2.GetStatusCode()
42 log.Debugf(" %d ", intcode)
43
44 if intcode >= 0 {
45 return true
46 }
47 return true
48}

Callers 1

SendPocMethod · 0.95

Calls 2

GetUAFunction · 0.92
SendFunction · 0.92

Tested by

no test coverage detected