View Single Post
Rostu
Junior Member
Join Date: Feb 2019
Old 09-10-2020 , 07:22   Re: [INFO] Hooking without extension
Reply With Quote #3

You can use MemoryEx to avoid additional addiction [Source Scramble]
Very very old thread [2.0 Version]: https://forums.alliedmods.net/showthread.php?t=320439
GitHub: https://github.com/Rostu13/Memory-Extended [3.1 Version]
Example: Get any library
P.S Get PEB funciton => https://github.com/Rostu13/Memory-Ex...nction.inc#L28
PHP Code:
public void OnPluginStart()
{
    
CheckInitPEB();
}
public 
void MemoryEx_InitPEB()
{
    
g_pSourcemod g_hMem.GetModuleHandle("sourcemod.logic");
    
g_pServer g_hMem.GetModuleHandle("server");

    
CreateCallback();
    
CreateHook();


Malloc? Win/Lin =>
https://github.com/Rostu13/Memory-Ex...emoryAlloc.inc
PHP Code:
#include <MemoryEx>

public void OnPluginStart()
{
    
CheckInitPEB();
}
public 
void MemoryEx_InitPEB()
{
    
Address pBase VirtualAlloc(0x100);
    
PrintToServer("pBase = 0x%X"pBase);
    
FreeMemory(pBase);

Extra: link with description inc [Only rus]: https://hlmod.ru/resources/inc-memory-extended.1448/

Last edited by Rostu; 09-10-2020 at 07:29. Reason: add extra links
Rostu is offline