From 841ad1c3acc6a5ed5413c0ca3f46a3875dd467b3 Mon Sep 17 00:00:00 2001 From: raul Date: Fri, 7 Jun 2024 11:29:09 +0200 Subject: [PATCH] Add structs.go file --- cmd/structs.go | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 cmd/structs.go diff --git a/cmd/structs.go b/cmd/structs.go new file mode 100644 index 0000000..43d7ffe --- /dev/null +++ b/cmd/structs.go @@ -0,0 +1,39 @@ +package cmd + +import ( + "net" + "time" +) + +type ClientJSON struct { + Date time.Time + List []ClientBasicInfo +} + +type Client struct { + ClientBasicInfo + Conn net.Conn + IsOnline bool + ClientID int +} + +type ClientBasicInfo struct { + Username string + UID string + GID string + OperatingSystem string + Hostname string + PublicIP string +} + +type Instructions struct { + IsHeartbeat bool + IsCommand bool + IsKillswitch bool + Message string +} + +type Response struct { + Successful bool + Message string +}