Thread: Module: MemHack
View Single Post
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 02-11-2006 , 19:09  
Reply With Quote #27

MemHack was not originally written to be an AMXx module. It was repurposed for AMXx use.

As such, there are some features you will almost never find a use for.

MEM_DLLBASE allows mod .dll hacking.
MEM_ENGBASE allows HL1 engine hacking.
MEM_NULLBASE allows for total memory hacking.

These two natives are only useful for total memory hacking:
Code:
native memhack_get_base(func_addr,&success);
native memhack_get_realaddr(address,baseaddress,memtype = MEMTYPE_DATA);
memhack_get_base will return the base pointer (the starting address) of a program, based on an address that belongs to that program.

In order to hack the memory of a program, you need its base address. Then you can hack offsets of the base address. This native lets you do that.

memhack_get_realaddr isn't useful at all really; all it does is return the current full address of the memory at this offset. When hacking programs, we use offsets from base; this will return the actual address, instead of the partial offset we give it.

The only true use of this native is that we can get the actual address of the base. The real address of an offset - the offset = the address of the base address.

Using these natives, one could concievably hack any programs in the memory, or even create ones own program, or inject one program into another.

However, no one will ever use these natives, or have a need to, besides debugging ^^
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka