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

Function main

cmd/test/Strings.go:9–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7)
8
9func main() {
10 hashmap := map[string]interface{}{
11 "foo": "bar",
12 }
13 v := hashmap["foo"].(string)
14 fmt.Println("%v", v)
15 mem := "asdasd%sqweqweqwe"
16 a := fmt.Sprintf(mem, "1231asdasd")
17 payload := "{\n \"id\": \"%s\",\n \"filters\": [{\n \"name\": \"AddResponseHeader\",\n \"args\": {\"name\": \"Result\",\"value\": \"%s\"}\n }],\n \"uri\": \"http://example.com\",\n \"order\": 0\n}"
18
19 fmt.Println(a)
20 t := fmt.Sprintf(payload, utils.GetCode(5), a)
21
22 fmt.Println(t)
23
24 b := "asd<%s>123->asd<%s>asda"
25 c := fmt.Sprintf(b, "qaz", "qwe")
26 fmt.Println(c)
27
28 d := ""
29 ds := strings.Split(d, ",")
30 fmt.Println(ds)
31
32 y := utils.EncodeString("asdasd")
33 fmt.Println(y)
34
35}

Callers

nothing calls this directly

Calls 1

GetCodeFunction · 0.92

Tested by

no test coverage detected