MCPcopy Create free account
hub / github.com/0mWindyBug/GhostMapperUM / FindPattern

Method FindPattern

GhostMapperUM/GhostMapperUM/utils.cpp:93–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93uintptr_t utils::FindPattern(uintptr_t dwAddress, uintptr_t dwLen, BYTE* bMask, const char* szMask) {
94 size_t max_len = dwLen - strlen(szMask);
95 for (uintptr_t i = 0; i < max_len; i++)
96 if (bDataCompare((BYTE*)(dwAddress + i), bMask, szMask))
97 return (uintptr_t)(dwAddress + i);
98 return 0;
99}
100
101PVOID utils::FindSection(const char* sectionName, uintptr_t modulePtr, PULONG size) {
102 size_t namelength = strlen(sectionName);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected