tiamat/cmd/structs.go

45 lines
625 B
Go
Raw Normal View History

2024-06-07 11:29:09 +02:00
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
2024-06-10 09:18:48 +02:00
LocalIP string
2024-06-07 11:29:09 +02:00
}
type Instructions struct {
IsHeartbeat bool
IsCommand bool
IsKillswitch bool
Message string
}
type Response struct {
Successful bool
Message string
}
2024-06-13 09:22:49 +02:00
type Bulk struct {
ClientIDs []int `form:"clients[]"`
}