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

Function Start2

cmd/commons/core/runner.go:167–194  ·  view source on GitHub ↗
(u string, hashmap map[string]interface{})

Source from the content-addressed store, hash-verified

165}
166
167func Start2(u string, hashmap map[string]interface{}) {
168 log.Infof("%s Runner started", u)
169 //log.Infoln("testing URL: ", u)
170 //for k, v := range hashmap {
171 // log.Debugln("key: ", k, " value: ", v)
172 //}
173 //defer func() {
174 // if errs := recover(); errs != nil {
175 // log.Debug(errs)
176 // }
177 //}()
178
179 r, err := url.Parse(u)
180 if err != nil {
181 log.Info("URL parse error")
182 log.Errorln(err)
183 return
184 }
185 var target string
186 if r.Path == "" {
187 target = r.Scheme + "://" + r.Host + "/"
188 } else {
189 target = r.Scheme + "://" + r.Host + r.Path
190 }
191 attack.Sevice(target, hashmap)
192 log.Infof("%s Runner finished", u)
193
194}

Callers 1

RunMethod · 0.85

Calls 1

SeviceFunction · 0.92

Tested by

no test coverage detected