- @frk1 and @ReactiioN for their HazeDumper
- @imi-tat0r for some C++ help
- @php for the PHP SDK
- make the API fully object-oriented (
new PHPMem('csgo.exe')
...) - signature scanning
- shellcode execution?
- Windows 7+
- Visual Studio 2015
- PHP 7.1.9 x64 non thread safe
- PHP 7.1.9 source code
- extract the PHP source into
php-7.1.9-src
and the PHP binaries intophp-7.1.9
- copy
php-7.1.9/dev/php7.lib
tophp-7.1.9-lib
- open
src/phpmem.sln
and build the solution - for installation instructions visit the PHP docs
- when developing, make sure to
require
phpmem_polfill.php
. It provides the data types forReadProcessMemory
andWriteProcessMemory
- if you need CS:GO offsets, you can use my HazeDumper parser for PHP
Opens a handle to a process.
int PHPMem::GetProcessHandle(string process)
Return: int processHandle
or false
Gets the base addess of a loaded module.
int PHPMem::GetModuleBase(int handle, string module)
Return: int moduleBaseAddress
or false
Reads data from the specified address.
any PHPMem::ReadProcessMemory(int handle, int address, int type)
Return: any data
or false
Writes the specified data to the specified address.
int PHPMem::WriteProcessMemory(int handle, int address, any value, int type)
Return: int lengthOfWrittenData
or false