github.com/HXSecurity/DongTai-agent-go@v0.4.2/core/base/stringsJoin/install.go (about) 1 package stringsJoin 2 3 import ( 4 "github.com/HXSecurity/DongTai-agent-go/model" 5 "github.com/brahma-adshonor/gohook" 6 "strings" 7 ) 8 9 func init() { 10 model.HookMap["stringsJoin"] = new(StringsJoin) 11 } 12 13 type StringsJoin struct { 14 } 15 16 func (h *StringsJoin) Hook() { 17 gohook.Hook(strings.Join, Join, JoinT) 18 } 19 20 func (h *StringsJoin) UnHook() { 21 gohook.UnHook(strings.Join) 22 }