tiamat/cmd/structs.go

74 lines
959 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 {
2024-06-14 11:26:39 +02:00
IsHeartbeat bool
IsCommand bool
2024-06-07 11:29:09 +02:00
IsKillswitch bool
2024-06-14 11:26:39 +02:00
IsDownload bool
IsUpload bool
FileName string
FileContents []byte
2024-06-14 11:26:39 +02:00
IsListFiles bool
Path string
Message string
2024-06-07 11:29:09 +02:00
}
type Response struct {
Successful bool
Message string
2024-06-14 11:26:39 +02:00
IsDownload bool
IsUpload bool
FileName string
FileContents []byte
2024-06-14 11:26:39 +02:00
IsListFiles bool
FileList
}
type FileList struct {
File []Item
}
type Item struct {
Name string
FullPath string
IsFolder bool
2024-06-07 11:29:09 +02:00
}
2024-06-13 09:22:49 +02:00
type Bulk struct {
ClientIDs []int `form:"clients[]"`
}