Feature: run a test client inside the master from the Advanced menu
The Advanced menu now ends with Run Test Program. It copies the kernel payload that was already read into memory, points its CONNECT_ADDRESS at 127.0.0.1:<listen port>, and loads it with MemoryLoadLibrary inside the master process, so this machine comes online as a controlled host -- no second machine is needed to try remote desktop or file transfer. A worker thread waits for the client to exit, then frees the module and re-enables the item. Only one instance runs at a time: the item is grayed while it does, and stopping it means uninstalling the test host from the online list. The loaded copy carries LOCAL_TEST_CLIENT_MAGIC in szFuture. The client uses that mark to refuse the commands that would otherwise hit the host process or the whole machine: uninstall (no self_del), update, run as admin, ban, share/assign, and shutdown/reboot/logoff. It also skips auth-kernel detection, which GetModuleFileName(NULL) would misjudge inside the master. Renames szFututre to szFuture and documents that the first 16 bytes of the reserved tail are now claimed, with a static_assert so it cannot silently shrink below the magic. Translations for en_US, zh_TW and de_DE, plus the HIDE_MENU_RUN_TEST feature flag and its row in the limits dialog. Verified on a Debug master: the item is last and has its icon, one click brings the host online, a second click is refused, uninstall stops it in about a second and the master survives, re-run works, and exiting the master with a live test client takes 2.6s (3.0s baseline). Co-Authored-By: deepseek-flash
This commit is contained in:
1 parent
cc9ce35c4d
commit
f77b18aa68
18 files changed
+268
-11
No files matched your search
@@ -298,6 +298,7 @@
|
||||
#define IDB_BITMAP_FILE_SPEED 414
|
||||
#define IDB_BITMAP_DISCLAIMER 415
|
||||
#define IDB_BITMAP_COPYNAME 416
|
||||
#define IDB_BITMAP_RUN_TEST 417
|
||||
#define IDC_MESSAGE 1000
|
||||
#define IDC_ONLINE 1001
|
||||
#define IDC_STATIC_TIPS 1002
|
||||
@@ -1128,14 +1129,16 @@
|
||||
#define ID_TOOL_TUNING_PACE_FPS_FLOOR 33104
|
||||
// 高级 → 远程桌面调优:自适应质量加吞吐判据(纯服务端,不下发客户端)
|
||||
#define ID_TOOL_TUNING_ADAPTIVE_LOAD 33105
|
||||
// 高级 → 运行测试程序:把内存里的 ServerDll 在主控进程内加载,本机上线一台测试主机
|
||||
#define ID_TOOL_RUN_TEST 33106
|
||||
#define ID_EXIT_FULLSCREEN 40001
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 417
|
||||
#define _APS_NEXT_COMMAND_VALUE 33106
|
||||
#define _APS_NEXT_RESOURCE_VALUE 418
|
||||
#define _APS_NEXT_COMMAND_VALUE 33107
|
||||
#define _APS_NEXT_CONTROL_VALUE 2621
|
||||
#define _APS_NEXT_SYMED_VALUE 105
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user