2 lines
904 B
JSON
2 lines
904 B
JSON
{"command_type": "powershell", "command": "$d = (Get-CimInstance Win32_ComputerSystem).Domain\n$p = \"C:\\Windows\\SYSVOL\\sysvol\\$d\\scripts\"\n[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nInvoke-WebRequest -Uri 'https://rmm.azcomputerguru.com/install/DARK-STORM-3150/download/windows' -OutFile \"$p\\gururmm-agent-new.exe\" -UseBasicParsing\n$config = @\"\n[server]\nurl = \"wss://rmm-api.azcomputerguru.com/ws\"\napi_key = \"DARK-STORM-3150\"\n\n[metrics]\ninterval_seconds = 60\ncollect_cpu = true\ncollect_memory = true\ncollect_disk = true\ncollect_network = true\n\n[watchdog]\nenabled = false\n\"@\n$config | Out-File -FilePath \"$p\\gururmm-agent.toml\" -Encoding UTF8\nWrite-Output \"domain=$d\"\nGet-Item \"$p\\gururmm-agent-new.exe\", \"$p\\gururmm-agent.toml\" | Select-Object Name, Length | Format-Table -AutoSize | Out-String", "timeout_seconds": 180}
|