mirror of
https://github.com/silverf0x/RpcView
synced 2026-06-08 17:26:38 +00:00
Limit the MAX_SIMPLE_DICT_ENTRIES 0x200 to avoid dead lock when searching for the RpcServer (heuristic approach)
This commit is contained in:
+2
-2
@@ -19,7 +19,7 @@
|
||||
#pragma comment(lib,"Version.lib")
|
||||
#pragma comment(lib,"Userenv.lib")
|
||||
|
||||
#define MAX_SIMPLE_DICT_ENTRIES 0x400
|
||||
#define MAX_SIMPLE_DICT_ENTRIES 0x200
|
||||
#define RPC_MAX_ENDPOINT_PROTOCOL_SIZE 0x100
|
||||
#define RPC_MAX_ENDPOINT_NAME_SIZE 0x100
|
||||
#define RPC_MAX_DLL_NAME_SIZE 0x100
|
||||
@@ -191,7 +191,7 @@ BOOL WINAPI GetRpcServerAddressCallback(HANDLE hProcess, UINT Index, VOID PTR_T
|
||||
UNREFERENCED_PARAMETER(Index);
|
||||
|
||||
if (!ReadProcessMemory(hProcess,pSimpleDictEntry,&RpcInterface,sizeof(RpcInterface),NULL)) goto End;
|
||||
|
||||
|
||||
if ( (RpcInterface.RpcServerInterface.Length==sizeof(RPC_SERVER_INTERFACE_T)) &&
|
||||
(!memcmp(&RpcInterface.RpcServerInterface.TransferSyntax, &DceRpcSyntaxUuid, sizeof(DceRpcSyntaxUuid))))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user