github.com/HXSecurity/DongTai-agent-go@v0.4.2/core/base/runtimeSlicebytetostring/install.go (about)

     1  package runtimeSlicebytetostring
     2  
     3  import (
     4  	"github.com/HXSecurity/DongTai-agent-go/model"
     5  	"github.com/brahma-adshonor/gohook"
     6  )
     7  
     8  func init() {
     9  	model.HookMap["runtimeSlicebytetostring"] = new(RuntimeSlicebytetostring)
    10  }
    11  
    12  type RuntimeSlicebytetostring struct {
    13  }
    14  
    15  func (h *RuntimeSlicebytetostring) Hook() {
    16  	gohook.Hook(slicebytetostring, slicebytetostringR, slicebytetostringT)
    17  }
    18  
    19  func (h *RuntimeSlicebytetostring) UnHook() {
    20  	gohook.UnHook(slicebytetostring)
    21  }