diff --git a/AdaptixServer/core/connector/tc_agents.go b/AdaptixServer/core/connector/tc_agents.go index 024f9647e..6f2957d07 100644 --- a/AdaptixServer/core/connector/tc_agents.go +++ b/AdaptixServer/core/connector/tc_agents.go @@ -97,7 +97,7 @@ func (tc *TsConnector) dispatchAgentCommand(ctx *gin.Context, username string, c /// Resolve server-side hooks if client did not provide any if commandData.HookId == "" && commandData.HandlerId == "" { - srvHookId, srvHandlerId, preHookHandled, hookErr := tc.teamserver.TsAxScriptResolveHooks(agentName, commandData.AgentId, listenerRegName, agentOs, commandData.CmdLine, args) + srvHookId, srvHandlerId, preHookHandled, hookErr := tc.teamserver.TsAxScriptResolveHooks(agentName, commandData.AgentId, listenerRegName, agentOs, commandData.CmdLine, args, username) if hookErr != nil { tc.teamserver.TsAgentConsoleErrorCommand(commandData.AgentId, username, commandData.CmdLine, std.ExtractJsErrorMessage(hookErr), "", "") ctx.JSON(http.StatusOK, gin.H{"message": "", "ok": true}) diff --git a/AdaptixServer/main.go b/AdaptixServer/main.go index 7351c008d..969f86024 100644 --- a/AdaptixServer/main.go +++ b/AdaptixServer/main.go @@ -1,6 +1,7 @@ package main import ( + "AdaptixServer/core/connector" "AdaptixServer/core/server" "AdaptixServer/core/utils/logs" "AdaptixServer/core/utils/token" @@ -10,7 +11,7 @@ import ( ) func main() { - fmt.Printf("\n[===== Adaptix Framework %v =====]\n\n", server.SMALL_VERSION) + fmt.Printf("\n[===== Adaptix Framework %v =====]\n\n", connector.SMALL_VERSION) var ( err error