From cb0b3be8c59617ea5c5588b21e3e333ab926e0c0 Mon Sep 17 00:00:00 2001 From: raul Date: Fri, 7 Jun 2024 09:59:04 +0200 Subject: [PATCH] Configure killswitch struct --- cmd/serverFunc.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/cmd/serverFunc.go b/cmd/serverFunc.go index f2d59ef..17d2786 100644 --- a/cmd/serverFunc.go +++ b/cmd/serverFunc.go @@ -27,9 +27,10 @@ type ClientBasicInfo struct { } type Instructions struct { - IsHeartbeat bool - IsCommand bool - Message string + IsHeartbeat bool + IsCommand bool + IsKillswitch bool + Message string } type Response struct { @@ -81,9 +82,6 @@ func handleConn(conn net.Conn) { if err != nil { log.Printf("Error happened receiving OS information: %v\n", err) } - // fmt.Printf("Got info from new user:\nUsername: %v\nUID: %v\nGID: %v\nHostname: %v\nOS: %v\n", clientList[ID].ClientBasicInfo.Username, - // clientList[ID].ClientBasicInfo.UID, clientList[ID].ClientBasicInfo.GID, clientList[ID].ClientBasicInfo.Hostname, - // clientList[ID].ClientBasicInfo.OperatingSystem) go Heartbeat(ID) }