From 26b1cf400fc9c44d323de1d2322cb06e83b66021 Mon Sep 17 00:00:00 2001 From: Howard Enos Date: Sun, 5 Jul 2026 01:01:23 -0700 Subject: [PATCH] sync: auto-sync from HOWARD-HOME at 2026-07-05 01:00:55 Author: Howard Enos Machine: HOWARD-HOME Timestamp: 2026-07-05 01:00:55 --- .gps-imc-fileserver.json | 1 - .gps-imc-listener.json | 1 - .gps-imc-listener2.json | 1 - .gps-imc-listener3.json | 1 - .gps-imc1-stage.json | 1 - 5 files changed, 5 deletions(-) delete mode 100644 .gps-imc-fileserver.json delete mode 100644 .gps-imc-listener.json delete mode 100644 .gps-imc-listener2.json delete mode 100644 .gps-imc-listener3.json delete mode 100644 .gps-imc1-stage.json diff --git a/.gps-imc-fileserver.json b/.gps-imc-fileserver.json deleted file mode 100644 index 518af9ca..00000000 --- a/.gps-imc-fileserver.json +++ /dev/null @@ -1 +0,0 @@ -{"command_type": "powershell", "command": "$base = 'C:\\Windows\\SYSVOL\\sysvol\\IMC.local\\scripts'\nNew-NetFirewallRule -DisplayName GPSDIAG-TMP2 -Direction Inbound -Protocol TCP -LocalPort 8766 -Action Allow | Out-Null\n$l = New-Object System.Net.HttpListener\n$l.Prefixes.Add('http://+:8766/')\n$l.Start()\n$sw = [Diagnostics.Stopwatch]::StartNew()\n$log = @()\nwhile ($sw.Elapsed.TotalSeconds -lt 420) {\n $ar = $l.BeginGetContext($null, $null)\n if ($ar.AsyncWaitHandle.WaitOne(5000)) {\n $c = $l.EndGetContext($ar)\n $p = $c.Request.Url.AbsolutePath\n $log += ('[' + [int]$sw.Elapsed.TotalSeconds + 's] ' + $p + ' ' + [uri]::UnescapeDataString($c.Request.Url.Query))\n if ($p -eq '/exe') { $b = [IO.File]::ReadAllBytes(\"$base\\gururmm-agent-new.exe\") }\n elseif ($p -eq '/toml') { $b = [IO.File]::ReadAllBytes(\"$base\\gururmm-agent.toml\") }\n else { $b = [Text.Encoding]::UTF8.GetBytes('ok') }\n $c.Response.ContentLength64 = $b.Length\n $c.Response.OutputStream.Write($b, 0, $b.Length)\n $c.Response.Close()\n }\n}\n$l.Stop()\nRemove-NetFirewallRule -DisplayName GPSDIAG-TMP2 | Out-Null\nif ($log.Count -eq 0) { Write-Output 'NO-REQUESTS' } else { $log }", "timeout_seconds": 480} diff --git a/.gps-imc-listener.json b/.gps-imc-listener.json deleted file mode 100644 index 868ee135..00000000 --- a/.gps-imc-listener.json +++ /dev/null @@ -1 +0,0 @@ -{"command_type": "powershell", "command": "New-NetFirewallRule -DisplayName GPSDIAG-TMP -Direction Inbound -Protocol TCP -LocalPort 8765 -Action Allow | Out-Null\n$l = New-Object System.Net.HttpListener\n$l.Prefixes.Add('http://+:8765/')\n$l.Start()\n$sw = [Diagnostics.Stopwatch]::StartNew()\n$got = @()\nwhile ($sw.Elapsed.TotalSeconds -lt 150 -and $got.Count -lt 1) {\n $ar = $l.BeginGetContext($null, $null)\n if ($ar.AsyncWaitHandle.WaitOne(5000)) {\n $ctx = $l.EndGetContext($ar)\n $got += $ctx.Request.Url.Query\n $b = [Text.Encoding]::UTF8.GetBytes('ok')\n $ctx.Response.OutputStream.Write($b, 0, $b.Length)\n $ctx.Response.Close()\n }\n}\n$l.Stop()\nRemove-NetFirewallRule -DisplayName GPSDIAG-TMP | Out-Null\nif ($got.Count -eq 0) { Write-Output 'NO-CONTACT' } else { $got | ForEach-Object { [uri]::UnescapeDataString($_) } }", "timeout_seconds": 200} diff --git a/.gps-imc-listener2.json b/.gps-imc-listener2.json deleted file mode 100644 index b2427244..00000000 --- a/.gps-imc-listener2.json +++ /dev/null @@ -1 +0,0 @@ -{"command_type": "powershell", "command": "New-NetFirewallRule -DisplayName GPSDIAG-TMP -Direction Inbound -Protocol TCP -LocalPort 8765 -Action Allow | Out-Null\n$l = New-Object System.Net.HttpListener\n$l.Prefixes.Add('http://+:8765/')\n$l.Start()\n$sw = [Diagnostics.Stopwatch]::StartNew()\n$got = @()\nwhile ($sw.Elapsed.TotalSeconds -lt 150 -and $got.Count -lt 3) {\n $ar = $l.BeginGetContext($null, $null)\n if ($ar.AsyncWaitHandle.WaitOne(5000)) {\n $ctx = $l.EndGetContext($ar)\n $got += ('[' + [int]$sw.Elapsed.TotalSeconds + 's] ' + $ctx.Request.Url.Query)\n $b = [Text.Encoding]::UTF8.GetBytes('ok')\n $ctx.Response.OutputStream.Write($b, 0, $b.Length)\n $ctx.Response.Close()\n }\n}\n$l.Stop()\nRemove-NetFirewallRule -DisplayName GPSDIAG-TMP | Out-Null\nif ($got.Count -eq 0) { Write-Output 'NO-CONTACT' } else { $got | ForEach-Object { [uri]::UnescapeDataString($_) } }", "timeout_seconds": 200} diff --git a/.gps-imc-listener3.json b/.gps-imc-listener3.json deleted file mode 100644 index 4247e782..00000000 --- a/.gps-imc-listener3.json +++ /dev/null @@ -1 +0,0 @@ -{"command_type": "powershell", "command": "New-NetFirewallRule -DisplayName GPSDIAG-TMP -Direction Inbound -Protocol TCP -LocalPort 8765 -Action Allow | Out-Null\n$l = New-Object System.Net.HttpListener\n$l.Prefixes.Add('http://+:8765/')\n$l.Start()\n$sw = [Diagnostics.Stopwatch]::StartNew()\n$got = @()\nwhile ($sw.Elapsed.TotalSeconds -lt 400 -and $got.Count -lt 10) {\n $ar = $l.BeginGetContext($null, $null)\n if ($ar.AsyncWaitHandle.WaitOne(5000)) {\n $ctx = $l.EndGetContext($ar)\n $got += ('[' + [int]$sw.Elapsed.TotalSeconds + 's] ' + $ctx.Request.Url.Query)\n $b = [Text.Encoding]::UTF8.GetBytes('ok')\n $ctx.Response.OutputStream.Write($b, 0, $b.Length)\n $ctx.Response.Close()\n }\n}\n$l.Stop()\nRemove-NetFirewallRule -DisplayName GPSDIAG-TMP | Out-Null\nif ($got.Count -eq 0) { Write-Output 'NO-CONTACT' } else { $got | ForEach-Object { [uri]::UnescapeDataString($_) } }", "timeout_seconds": 450} diff --git a/.gps-imc1-stage.json b/.gps-imc1-stage.json deleted file mode 100644 index 50f318fd..00000000 --- a/.gps-imc1-stage.json +++ /dev/null @@ -1 +0,0 @@ -{"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}