Add universal forge, fusion disguise, remote deploy, and stability fixes.
Ship cross-platform spread kits and fusion ZIPs with per-OS launchers, one-liner dropper endpoints, Windows file disguise, and a large batch of wiring/bug fixes so agents connect reliably across a LAN test fleet.
This commit is contained in:
29
agent/deploy/priority_windows.go
Normal file
29
agent/deploy/priority_windows.go
Normal file
@@ -0,0 +1,29 @@
|
||||
//go:build windows
|
||||
|
||||
package deploy
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"os/exec"
|
||||
)
|
||||
|
||||
func SetProcessPriority(priority string) error {
|
||||
class := "BelowNormal"
|
||||
switch priority {
|
||||
case "idle":
|
||||
class = "Idle"
|
||||
case "below_normal":
|
||||
class = "BelowNormal"
|
||||
case "normal":
|
||||
class = "Normal"
|
||||
case "above_normal":
|
||||
class = "AboveNormal"
|
||||
case "high":
|
||||
class = "High"
|
||||
}
|
||||
pid := os.Getpid()
|
||||
cmd := exec.Command("powershell", "-NoProfile", "-Command",
|
||||
fmt.Sprintf("(Get-Process -Id %d).PriorityClass = '%s'", pid, class))
|
||||
return cmd.Run()
|
||||
}
|
||||
Reference in New Issue
Block a user