github.com/HXSecurity/DongTai-agent-go@v0.4.2/hook/base.go (about) 1 package hook 2 3 type Base struct { 4 } 5 6 func (b *Base) GetHook() []string { 7 return []string{ 8 "sqlDBQuery", 9 "fmtSprintf", 10 "jsonUnmarshal", 11 "jsonDecoderDecode", 12 "jsonNewDecoder", 13 "runtimeConcatstrings", 14 "execCommand", 15 "execCmdStart", 16 "bufioWriterWrite", 17 "bufioWriterWriteString", 18 "runtimesSringtoslicebyte", 19 "htmlTemplateExecuteTemplate", 20 "httpClientDo", 21 "httpNewRequest", 22 "stringsBuilderWriteString", 23 "osOpenFile", 24 "ioReadAll", 25 "regexpRegexpReplaceAllString", 26 "urlUrlString", 27 } 28 } 29 30 func (b *Base) HookAll() { 31 Hook(b.GetHook()) 32 } 33 34 func (b *Base) UnHookAll() { 35 UnHook(b.GetHook()) 36 }