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:
24
agent/deploy/priority_unix.go
Normal file
24
agent/deploy/priority_unix.go
Normal file
@@ -0,0 +1,24 @@
|
||||
//go:build !windows
|
||||
|
||||
package deploy
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func SetProcessPriority(priority string) error {
|
||||
nice := 5
|
||||
switch priority {
|
||||
case "idle":
|
||||
nice = 19
|
||||
case "below_normal":
|
||||
nice = 10
|
||||
case "normal":
|
||||
nice = 5
|
||||
case "above_normal":
|
||||
nice = 0
|
||||
case "high":
|
||||
nice = -5
|
||||
}
|
||||
return syscall.Setpriority(syscall.PRIO_PROCESS, 0, nice)
|
||||
}
|
||||
Reference in New Issue
Block a user