Raised This Month: $12 Target: $400
 3% 

Module: MemHack


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 01-11-2006 , 22:40   Module: MemHack
Reply With Quote #1

MemHack <short for Memory Hacking Module> allows you to hack any part of the memory dynamically using simple functions.

You may hack the mod dll, to directly alter and interface with the mod.
You may also hack the engine dll, and directly interface with that, allowing you to do things even mods can't do.
You can also hack freeform, with no base address.

Allows for simple retreival and patching of memory, as well as a few helper functions. Note: You can, and probably will, crash HL1 with this. Be careful.

This module can emulate any CSHACK native.

To add:
Hooking and calling functions

Credit to: DS for his awsome code. You asked for someone to clean up the code; I did ^^
Attached Files
File Type: rar memhack_source.rar (36.0 KB, 2030 views)
File Type: rar memhack.rar (41.3 KB, 23207 views)
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 01-12-2006 , 08:32   Re: MemHack
Reply With Quote #2

Quote:
Originally Posted by Twilight Suzuka
You may also hack the engine dll, and directly interface with that, allowing you to do things even mods can't do
Any particular reason for that? I can't believe that mods couldn't hack the engine dll

Also, watch out with this - you could easily crash the server; and things like modifying code will break on PAX.
__________________
hello, i am pm
PM is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 01-12-2006 , 10:44   Re: MemHack
Reply With Quote #3

Quote:
Originally Posted by PM
Quote:
Originally Posted by Twilight Suzuka
You may also hack the engine dll, and directly interface with that, allowing you to do things even mods can't do
Any particular reason for that? I can't believe that mods couldn't hack the engine dll

Also, watch out with this - you could easily crash the server; and things like modifying code will break on PAX.
I never saw any method of altering the game .dll from the mod, without using the same method of memory patching, which is what I emant ^^ No native method; you have to use crazy hacks.

When I add function hacking, this module will become evn more:
unstable
hard to use
functional.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 01-13-2006 , 20:17  
Reply With Quote #4

Updated to fix some bugs.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
More
Member
Join Date: Nov 2004
Location: Internet
Old 01-29-2006 , 10:46  
Reply With Quote #5

gj
More is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 01-29-2006 , 12:48  
Reply With Quote #6

Thanks.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
Blackhawk
Member
Join Date: Apr 2005
Old 02-08-2006 , 17:37  
Reply With Quote #7

Are there any documentation or samples that someone can use?
Would like to test that brand new stuff
__________________
Outpost 104 - last hope for teamplay
Blackhawk is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 02-08-2006 , 18:25  
Reply With Quote #8

Not exactly. See, the effort required to find the nessasary offsets just isn't worth it ^^;
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
Blackhawk
Member
Join Date: Apr 2005
Old 02-08-2006 , 19:47  
Reply With Quote #9

Ok, lets pratice a little with me please

Lets say, my mod has loaded it's base at 01050000. As far i have understood, MEM_DLLBASE should be the right value for me without bothering where the real address is.

At Address 0127B4E8:134 is a pointer to a float value i would like to change.
Give me a hint how the code must look alike, every try i did ended in a server crash
__________________
Outpost 104 - last hope for teamplay
Blackhawk is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 02-08-2006 , 20:39  
Reply With Quote #10

Where the pointer is doesn't matter; what matters is its offset from base ^^
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode