Initial commit
This commit is contained in:
23
plugins/security-anticheat/commands/scan-memory.md
Normal file
23
plugins/security-anticheat/commands/scan-memory.md
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
description: Scan process memory for suspicious patterns
|
||||
---
|
||||
|
||||
# Scan Memory Command
|
||||
|
||||
Scan target process memory for cheat signatures.
|
||||
|
||||
## Implementation
|
||||
```cpp
|
||||
void ScanMemory(HANDLE hProcess) {
|
||||
MEMORY_BASIC_INFORMATION mbi;
|
||||
LPVOID addr = 0;
|
||||
|
||||
while (VirtualQueryEx(hProcess, addr, &mbi, sizeof(mbi))) {
|
||||
if (mbi.State == MEM_COMMIT && mbi.Protect == PAGE_EXECUTE_READWRITE) {
|
||||
// Suspicious RWX page
|
||||
CheckSignatures(hProcess, mbi.BaseAddress, mbi.RegionSize);
|
||||
}
|
||||
addr = (LPBYTE)addr + mbi.RegionSize;
|
||||
}
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user