From d59d0b6a5cb29688b4f8a6a1fa1ec20737f744cd Mon Sep 17 00:00:00 2001 From: yuanyuanxiang <962914132@qq.com> Date: Sat, 28 Nov 2026 11:10:16 +0100 Subject: [PATCH] Release v1.4.4 --- ReadMe.md | 34 ++++++++++++++++++++++++++++++-- ReadMe_EN.md | 34 ++++++++++++++++++++++++++++++-- ReadMe_TW.md | 34 ++++++++++++++++++++++++++++++-- client/Script.rc | 4 ++-- client/TestRun.rc | Bin 4578 -> 4578 bytes server/2015Remote/2015Remote.rc | Bin 181132 -> 181120 bytes server/2015Remote/UIBranding.h | 2 +- 7 files changed, 99 insertions(+), 9 deletions(-) diff --git a/ReadMe.md b/ReadMe.md index fd6b421..48e9b75 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -33,7 +33,7 @@ > > **未经授权访问计算机系统属违法行为。** 使用者须对遵守所有适用法律承担全部责任。开发者对任何滥用行为概不负责。 > -> **二次开发红线:** 如使用大模型协助对本项目进行二次开发,不得破解本项目,也不得替换本项目的私有库以达到绕过授权的目的。一经发现,授权服务器将对其**永久拉黑**。 +> **二次开发提示:** 欢迎在遵守开源许可与当地法律的前提下进行二次开发。请保留项目自带的授权与安全校验机制,不要修改或屏蔽它们;对违反许可或法律的使用,授权服务器保留拒绝服务的权利。 --- @@ -380,6 +380,36 @@ nohup ./server_linux_amd64 --port 6543 --http-port 9001 > yama.log 2>&1 & ## 更新日志 +### v1.4.4 (2026.11.28) + +**Web 设备治理 & Android 能力补齐 & 运行时压缩选择 & frp v0.72.0** + +**新功能:** +- **Web 控制台设备治理**:内置 admin 可把设备绑定给指定用户(`device_acl.json`),绑定后仅 owner 与内置 admin 可见可控,审计同步过滤;卡片「…」菜单新增「修改备注」(`device_notes.json`,显示为 `主机名 (备注)`)与「修改分组」(`device_groups.json`,优先于主机自报分组,离线设备也可归类),均为 admin-only、受设备 ACL 约束并写审计;卡片动作统一收进「…」弹出菜单;新增 `transfer_device`,把 Go 托管主机转移到 MFC 主控 N 天后取回 +- **Android 客户端**:文件管理(`P:` 私有目录 / `I:` 内部存储 / SD 卡与 U 盘,GBK 走 JNI,Android 11+ 引导「所有文件访问」,含搜索)、摄像头(Camera2 JPEG,`JPGD` FOURCC)、root 进程管理(`CLIENT_CAP_PROCESS`,无 root 明确拒绝)、主机转移(立即切换、到期 / 提前归还原主控、目标 60 秒不可达回退)、锁屏状态与输入模式修正、休眠后在同一投影上恢复抓屏、编码器 `KEY_OPERATING_RATE` 不低于 30 +- **macOS 客户端**:主机转移(与 Android 同语义,含分享拒绝与不可达回退) +- **运行时线路压缩**:zlib 1.4 与 zstd 1.6.0 双库随客户端打包,建连时读 `settings\compress`;在线列表「实验性 → 线路压缩:ZSTD / ZLIB」按 `CLIENT_CAP_COMPRESS_SWITCH` 在线切换,约两秒生效,提示标记实际算法;压缩与主机分享互斥,`1.001n+12` 小包缓冲修正 +- **MCP**:新增 `build_client`(`McpBuild` 默认关,覆盖 ghost / TestRun / ServerDll / TinyRun 与三平台);设置对话框新增「只读 / 智能」一键预设,命令白名单输入框不再显示;`list_hosts` / `get_host_detail` 返回 Web 备注与分组覆盖,纯文本表新增备注列;绑定设备对 MCP 一律不可见(按 ID 返回 -32002) +- **frp v0.72.0**:内嵌 `frpc.dll` / `frps.dll` 重建并替换;下级已自建 FRP 时本地主控地址优先,上级自动 FRP 只作后备,设置对话框说明「公网地址由上级自动 FRP 提供」 +- **客户端加载与发布**:客户端载荷下发增加 AES-CBC 加密(随机 IV),强化授权载荷传输的安全性;被封禁主机按「最早再试时间」退避启动;装载器在 3 次连接失败后回退到注册表缓存载荷;Linux / macOS Release 去调试符号(`linux/ghost` 10.3 MB → 2.5 MB);新增发布门禁 E2E 冒烟脚本 + +**改进:** +- Web 模态对话框只在 × / 取消 / 确认上关闭,选中文本拖出卡片不再误关;卡片字段统一转义,杜绝注入 +- IP 历史改为最后活跃时间倒序,达到 1000 条每次写入淘汰队尾,并用 60 KB 上限保护单个值 +- 状态栏按实测字体宽度布局,空间不足时按优先级隐藏窗格;全屏状态条整帧 blit,消除每秒闪烁 +- 「取消分享」立即停止 Windows 分享连接;分享与转移区分,同一目标只保留一条连接 +- 音频包按 65 字节 GSM610 块对齐,修正 Windows 主机尾部 25 字节垃圾;`RES_UPTIME` 每次登录重算 +- 主控在 Low 完整性下启动即退出并给出 `icacls` 修复命令;Android 桌面控制改为按住左键拖动 +- 新增 `docs/Client_Capability_Matrix.md`;新字符串补齐 en_US / zh_TW / de_DE + +**Bug 修复:** +- 打开摄像头即崩溃(DirectShow `S_FALSE` 被当作失败、缓冲区未分配即回调) +- Windows 7 客户端 TLS 证书链引擎因结构体尺寸被拒(fail-closed 不上线) +- 压缩切换后 LP64 平台编译失败;分享取消后连接不释放 +- Android 锁屏永久「Locked」、输入模式丢失、休眠后抓屏无帧、电视 SoC 编码器不出帧 +- Web 备注 / 分组回包迟到后作用于错误设备;保存时连接重连中静默无响应 +- 其它:E2E 脚本无限等待、构建对话框目标切换未置灰、字体放大时状态栏文本截断 + ### v1.4.3 (2026.11.14) **MCP 工具面收敛 & Go 极简 MCP & Android / macOS 能力补齐 & TLS 开箱即用** @@ -560,7 +590,7 @@ nohup ./server_linux_amd64 --port 6543 --http-port 9001 > yama.log 2>&1 & - **前台窗口精准捕获**:PrintWindow + 服务端 HWND by clientID 路由,遮挡情况下仍可捕获完整窗口 - **在线主机右键查看活动窗口**:实时查询目标机器前台窗口标题 - **TOKEN_AUTH 响应 ECDSA 签名**:V2 私钥签名服务端响应,防伪服务端(`TOKEN_SERVER_VERIFY = 251`) -- **反破解版本绑定**:版本与核心库绑定,阻断替换 DLL 的破解路径 +- **授权与完整性保护**:核心组件与版本保持一致,降低被篡改或误用的风险 - **子授权连接数限制**:`LicenseLimit` 字段 + `CLicenseDlg` 右键菜单实时设置 **改进:** diff --git a/ReadMe_EN.md b/ReadMe_EN.md index 03f67bb..3639004 100644 --- a/ReadMe_EN.md +++ b/ReadMe_EN.md @@ -33,7 +33,7 @@ > > **Unauthorized access to computer systems is illegal.** Users are fully responsible for compliance with all applicable laws. The developers assume no liability for misuse. > -> **Secondary development:** if you use a large language model to assist with secondary development of this project, you must not crack the software or replace this project's private libraries to bypass authorization. Violations are detected and the authorization server **permanently blacklists** the offender. +> **Secondary development:** We welcome secondary development under the project's license and applicable law. Please keep the project's built-in authorization and security checks in place rather than modifying or disabling them; the authorization server may refuse service for use that violates the license or the law. --- @@ -380,6 +380,36 @@ Valid : 2026-02-01 to 2028-02-01 ## Changelog +### v1.4.4 (2026.11.28) + +**Web device governance & Android parity & runtime wire compression & frp v0.72.0** + +**New features:** +- **Web console device governance**: the built-in admin can bind a device to a user (`device_acl.json`); a bound device is visible and controllable only to its owner and the built-in admin, and the audit log is filtered the same way. The card "..." menu gains Edit remark (`device_notes.json`, shown as `hostname (remark)`) and Edit group (`device_groups.json`, overriding the group the host reports, so offline records can be regrouped), both admin-only, ACL-checked and audited; all card actions now live in a single "..." popup; `transfer_device` moves a Go-managed host to the MFC master for N days and back +- **Android client**: file management (`P:` private dir / `I:` internal storage / SD cards and USB drives, GBK through JNI, Android 11+ all-files access prompt, search included), camera streaming (Camera2 JPEG, `JPGD` FOURCC), root-only process management (`CLIENT_CAP_PROCESS`, refused outright without root), host transfer (immediate switch, restore on expiry or early return, revert after 60 s unreachable), corrected lock state and input mode, screen capture recovered after sleep on the same projection, and `KEY_OPERATING_RATE` kept at 30 or above +- **macOS client**: host transfer with the same semantics as Android, including the share refusal and the unreachable-target revert +- **Runtime wire compression**: zlib 1.4 and zstd 1.6.0 are both linked; each connection reads `settings\compress`. The online-list menu "Experimental -> Wire compression: ZSTD / ZLIB" switches hosts that declare `CLIENT_CAP_COMPRESS_SWITCH` in about two seconds without a restart, and the tooltip marks the negotiated algorithm. Compression and host sharing are mutually exclusive; the `1.001n+12` small-packet buffer has been corrected +- **MCP**: new `build_client` tool (`McpBuild`, off by default, covering ghost / TestRun / ServerDll / TinyRun and the three platforms); the settings dialog gains one-click Read-only / Smart presets and no longer shows the command whitelist; `list_hosts` / `get_host_detail` return web remarks and group overrides, with a remark column in the text table; user-bound devices are hidden from MCP entirely (an explicit id returns -32002) +- **frp v0.72.0**: the bundled `frpc.dll` / `frps.dll` are rebuilt and replaced; when a subordinate already runs its own FRP proxy its local master address wins and the upstream auto FRP stays a fallback, with the dialog explaining when the public address comes from the upstream +- **Loader and release engineering**: client payload delivery now uses AES-CBC with a random IV to strengthen the security of authorization payload delivery; a banned host backs off until its persisted retry time; the loaders fall back to the cached registry payload after three failed connects; Linux / macOS Release builds drop debug symbols (`linux/ghost` 10.3 MB to 2.5 MB); a release-gate E2E smoke script was added + +**Improvements:** +- Web modal dialogs close only from their own buttons, so selecting text and releasing outside the card no longer dismisses them; client-reported card fields are escaped before reaching HTML or attribute contexts +- IP history is ordered by last activity, evicts the oldest entry on every write at the 1000-record cap, and guards the single stored value with a 60 KB limit +- Status-bar panes are sized from measured text and hidden by priority when space runs out; the full-screen overlay blits a complete frame, removing the once-per-second flicker +- Cancelling a share now stops the Windows share connection immediately; shares and transfers are tracked separately and one target keeps one connection +- Audio packets are block-aligned to 65-byte GSM610 blocks, dropping the 25 stale bytes Windows hosts ship; `RES_UPTIME` is recomputed on every login +- The master refuses to start at Low integrity and prints the `icacls` fix; desktop control of Android hosts now needs a held left button +- Added `docs/Client_Capability_Matrix.md`; new strings in en_US / zh_TW / de_DE + +**Bug fixes:** +- Opening the webcam killed the client (DirectShow `S_FALSE` treated as a failure, the sample callback writing into an unallocated buffer) +- Windows 7 clients failed TLS because the chain-engine struct was compiled at the Windows 10 size +- The compression switch broke LP64 builds; cancelling a share left the Windows connection alive +- Android showed "Locked" forever, lost its input mode, stopped producing frames after sleep, and some TV SoC encoders never emitted a frame +- Late web remark / group replies could land on the wrong device, and Save while reconnecting did nothing +- Also: the E2E script could wait forever, the build dialog kept install options enabled for POSIX targets, and status-bar text was clipped at larger font sizes + ### v1.4.3 (2026.11.14) **MCP tool consolidation & Go minimal MCP & Android / macOS parity & TLS out of the box** @@ -560,7 +590,7 @@ Valid : 2026-02-01 to 2028-02-01 - **Foreground window capture**: PrintWindow + server-side HWND routing by clientID, captures the target window even when occluded - **View active window from host list**: right-click menu queries and shows the foreground window title of the target machine in real time - **TOKEN_AUTH ECDSA signature**: server signs auth responses with its V2 P-256 key to prevent fake-server attacks (`TOKEN_SERVER_VERIFY = 251`) -- **Anti-cracking version binding**: binary binds to core lib version; mismatched DLL replacement is rejected at load time +- **Authorization and integrity protection**: core components stay consistent with the build, reducing the risk of tampering or mismatched use - **Sub-license connection cap**: `LicenseLimit` field in `licenses.ini` + real-time set / clear from `CLicenseDlg` right-click menu **Improvements:** diff --git a/ReadMe_TW.md b/ReadMe_TW.md index 80db5c6..892e29e 100644 --- a/ReadMe_TW.md +++ b/ReadMe_TW.md @@ -33,7 +33,7 @@ > > **未經授權存取電腦系統屬違法行為。** 使用者須對遵守所有適用法律承擔全部責任。開發者對任何濫用行為概不負責。 > -> **二次開發紅線:** 如使用大模型協助對本專案進行二次開發,不得破解本專案,也不得替換本專案的私有函式庫以達到繞過授權的目的。一經發現,授權伺服器將對其**永久列入黑名單**。 +> **二次開發提示:** 歡迎在遵守開源授權與當地法律的前提下進行二次開發。請保留專案內建的授權與安全校驗機制,不要修改或停用它們;對違反授權或法律的使用,授權伺服器保留拒絕服務的權利。 --- @@ -380,6 +380,36 @@ nohup ./server_linux_amd64 --port 6543 --http-port 9001 > yama.log 2>&1 & ## 更新日誌 +### v1.4.4 (2026.11.28) + +**Web 裝置治理 & Android 能力補齊 & 執行期壓縮選擇 & frp v0.72.0** + +**新功能:** +- **Web 控制台裝置治理**:內建 admin 可把裝置綁定給指定使用者(`device_acl.json`),綁定後僅 owner 與內建 admin 可見可控,稽核同步過濾;卡片「…」選單新增「修改備註」(`device_notes.json`,顯示為 `主機名 (備註)`)與「修改群組」(`device_groups.json`,優先於主機自報群組,離線裝置也可歸類),皆為 admin-only、受裝置 ACL 約束並寫稽核;卡片動作統一收進「…」彈出選單;新增 `transfer_device`,把 Go 託管主機轉移到 MFC 主控 N 天後取回 +- **Android 用戶端**:檔案管理(`P:` 私有目錄 / `I:` 內部儲存 / SD 卡與 USB,GBK 走 JNI,Android 11+ 引導「所有檔案存取」,含搜尋)、攝影機(Camera2 JPEG,`JPGD` FOURCC)、root 行程管理(`CLIENT_CAP_PROCESS`,無 root 明確拒絕)、主機轉移(立即切換、到期 / 提前歸還原主控、目標 60 秒不可達回退)、鎖屏狀態與輸入模式修正、休眠後在同一投影上恢復擷取畫面、編碼器 `KEY_OPERATING_RATE` 不低於 30 +- **macOS 用戶端**:主機轉移(與 Android 同語意,含分享拒絕與不可達回退) +- **執行期線路壓縮**:zlib 1.4 與 zstd 1.6.0 雙庫隨用戶端打包,連線時讀 `settings\compress`;線上列表「實驗性 → 線路壓縮:ZSTD / ZLIB」依 `CLIENT_CAP_COMPRESS_SWITCH` 線上切換,約兩秒生效,提示標記實際演算法;壓縮與主機分享互斥,`1.001n+12` 小封包緩衝修正 +- **MCP**:新增 `build_client`(`McpBuild` 預設關,涵蓋 ghost / TestRun / ServerDll / TinyRun 與三平台);設定對話框新增「唯讀 / 智慧」一鍵預設,命令白名單輸入框不再顯示;`list_hosts` / `get_host_detail` 回傳 Web 備註與群組覆寫,純文字表新增備註欄;綁定裝置對 MCP 一律不可見(依 ID 呼叫回 -32002) +- **frp v0.72.0**:內嵌 `frpc.dll` / `frps.dll` 重建並替換;下級已自建 FRP 時本地主控位址優先,上級自動 FRP 只作後備,設定對話框說明「公網位址由上級自動 FRP 提供」 +- **用戶端載入與發佈**:用戶端載荷下發增加 AES-CBC 加密(隨機 IV),強化授權載荷傳輸的安全性;被封禁主機依「最早再試時間」退避啟動;載入器在 3 次連線失敗後回退到登錄快取載荷;Linux / macOS Release 去偵錯符號(`linux/ghost` 10.3 MB → 2.5 MB);新增發佈門檻 E2E 冒煙腳本 + +**改進:** +- Web 強制回應對話框只在 × / 取消 / 確認上關閉,選取文字拖出卡片不再誤關;卡片欄位統一轉義,杜絕注入 +- IP 歷史改為最後活躍時間倒序,達到 1000 筆每次寫入淘汰最舊項,並以 60 KB 上限保護單一值 +- 狀態列依實測字型寬度配置,空間不足時依優先順序隱藏窗格;全螢幕狀態列整幀 blit,消除每秒閃爍 +- 「取消分享」立即停止 Windows 分享連線;分享與轉移區分,同一目標只保留一條連線 +- 音訊封包依 65 位元組 GSM610 區塊對齊,修正 Windows 主機尾部 25 位元組垃圾;`RES_UPTIME` 每次登入重算 +- 主控在 Low 完整性下啟動即結束並給出 `icacls` 修復命令;Android 桌面控制改為按住左鍵拖曳 +- 新增 `docs/Client_Capability_Matrix.md`;新字串補齊 en_US / zh_TW / de_DE + +**Bug 修復:** +- 開啟攝影機即崩潰(DirectShow `S_FALSE` 被當成失敗、緩衝未配置即回呼) +- Windows 7 用戶端 TLS 憑證鏈引擎因結構尺寸被拒(fail-closed 不上線) +- 壓縮切換後 LP64 平台編譯失敗;取消分享後連線未釋放 +- Android 鎖屏永久顯示「Locked」、輸入模式遺失、休眠後擷取畫面無幀、電視 SoC 編碼器不出幀 +- Web 備註 / 群組回包遲到後作用於錯誤裝置;儲存時連線重連中靜默無回應 +- 其他:E2E 腳本無限等待、建置對話框切換目標未置灰、字型放大時狀態列文字被截斷 + ### v1.4.3 (2026.11.14) **MCP 工具面收斂 & Go 極簡 MCP & Android / macOS 能力補齊 & TLS 開箱即用** @@ -560,7 +590,7 @@ nohup ./server_linux_amd64 --port 6543 --http-port 9001 > yama.log 2>&1 & - **前台視窗精準擷取**:PrintWindow + 伺服端 HWND by clientID 路由,遮蓋情況下仍可擷取完整視窗 - **線上主機右鍵查看活動視窗**:即時查詢目標機器前台視窗標題 - **TOKEN_AUTH 回應 ECDSA 簽章**:V2 私鑰簽名伺服端回應,防偽造伺服端(`TOKEN_SERVER_VERIFY = 251`) -- **反破解版本綁定**:版本與核心函式庫綁定,阻斷替換 DLL 的破解路徑 +- **授權與完整性保護**:核心元件與版本保持一致,降低被篡改或誤用的風險 - **子授權連線數限制**:`LicenseLimit` 欄位 + `CLicenseDlg` 右鍵選單即時設定 **改進:** diff --git a/client/Script.rc b/client/Script.rc index 8b4f5dc..9de09b1 100644 --- a/client/Script.rc +++ b/client/Script.rc @@ -103,7 +103,7 @@ IDR_WAVE WAVE "Res\\msg.wav" // VS_VERSION_INFO VERSIONINFO - FILEVERSION 1,0,4,3 + FILEVERSION 1,0,4,4 PRODUCTVERSION 1,0,0,1 FILEFLAGSMASK 0x3fL #ifdef _DEBUG @@ -121,7 +121,7 @@ BEGIN BEGIN VALUE "CompanyName", "FUCK THE UNIVERSE" VALUE "FileDescription", "A GHOST" - VALUE "FileVersion", "1.0.4.3" + VALUE "FileVersion", "1.0.4.4" VALUE "InternalName", "ServerDll.dll" VALUE "LegalCopyright", "Copyright (C) 2019-2026" VALUE "OriginalFilename", "ServerDll.dll" diff --git a/client/TestRun.rc b/client/TestRun.rc index e02cf45b76d2ad2bc2de279f64db965f278ac259..710bda6ab03b7072493900902e3b3677c3bb0b85 100644 GIT binary patch delta 25 hcmaE){78929|xn!=6()+W=50AiaffT-*A6p1ps&22+05d delta 25 hcmaE){78929|xoH=6()+W=7-5iaffT-*A6p1ps%y2*&^b diff --git a/server/2015Remote/2015Remote.rc b/server/2015Remote/2015Remote.rc index 1d6c538a3bdc5d6824630d22f332ec8255819fad..0151900d41bdb3bab131b7a8d7649dc63ef9d882 100644 GIT binary patch delta 100 zcmeBa=Wb}{-cTmbXfip`T6%JVf>84k`Rz;O8Lb)^O}5{k&nU>uXwv?15##oci84k`Rz;O8Lb)^jkn*Q&nU>uXx#pB5##oci0NDNch^r$UNLer0IW)gu*2(bDvcrrLm7mQ(w+zymh;|BoE=pgF= diff --git a/server/2015Remote/UIBranding.h b/server/2015Remote/UIBranding.h index 0665811..bc63e50 100644 --- a/server/2015Remote/UIBranding.h +++ b/server/2015Remote/UIBranding.h @@ -46,7 +46,7 @@ // 程序版本号 [建议格式: X.Y.Z] // 影响:关于对话框、标题栏 -#define BRAND_VERSION "1.4.3" +#define BRAND_VERSION "1.4.4" // 启动画面名称 [建议大写,更有 Logo 感] // 影响:启动画面 Logo 文字(大号艺术字体渲染)