Archived

This topic is now archived and is closed to further replies.

bilsa

"game hacking" :) - HOOKS ?

Recommended Posts

Ohoi Hello guys! Now If you entered this topic just to flame me... better leave with once, cus thats not what I''m asking for... Ok, now the thing is that I want to draw my own bitmap on the backbuffer surface of a DX based game. Now I have found where in memory the BackBuffer surface is stored. Ok, now I want my trainer program to draw some nice text on top of the screen, right? Ok, so I could just retrieve the BackBuffer surface from memory and draw to it with my own drawingfunctions... Ok, so I draw it to the backbuffer... but still nothing is printed because the game prints the graphics to the backbuffer after that I have printed the stuff... So my graphics won''t be shown. Now lets say I have deassembled the game and found the "draw loop" So, I would want my trainer to "catch" that loop and in the end of it draw my own stuff before ending. I have a vauge memory that this could be done with so called "Hooks"? am I right? I would appreciate if anyone could tell me more about the "Hooks" and even point out some nice tutorials about it. Cuz I found it very hard to find anything useful about it with google... Thx!

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
"Now If you entered this topic just to flame me... better leave..."

Tough! Don''t come here saying how you hacked a game and asking us to help you hack it more.

Maybe you should not be "hacking" if you can''t figure things out for yourself?

You are asking the wrong people. I and many here would hook you FACE if you hack our games

Share this post


Link to post
Share on other sites
Unless the programmers gave you a framework that let the game call third party functions, you''ll have to do it without the game''s cooperation. Hooks don''t magically happen, they have to be explicitely planned for. Scour the DirectX documentation to see if any of the DX functions called "at the end of the render loop" do provide hooks you can use. If not... tough luck.

Hooks



[ Start Here ! | How To Ask Smart Questions | Recommended C++ Books | C++ FAQ Lite | Function Ptrs | CppTips Archive ]
[ Header Files | File Format Docs | LNK2001 | C++ STL Doc | STLPort | Free C++ IDE | Boost C++ Lib | MSVC6 Lib Fixes ]

Share this post


Link to post
Share on other sites
funny: ok, i see...

anonymous poster:
Uhm, lol... cmon it''s a freaking game... not like i killed you or something. Now btw, since i have bought this game and all i have done is messing with the memory in my computer, WHICH i OWN, so why should it be such a big deal...



But how would it be if i jumped from the place in the code that calls for the "FlipSurface" function and jumped to another codesection and from there somehow called my "C-function", would it be possible to call my own "C-function", that is located in my trainer, from within the game code memory?

So is it possible to call for a C-function with assembly code, like I described?

thx!

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
"why should it be such a big deal... "

It is a big deal and should be illegal. You aren''t simply "messing with memory on your computer" you are potentially robbing a company of it''s main source of revenue, which in my eyes makes you a thief. Check the license agreement you must have clicked YES to when you installed the game. Email the company and ask them if it''s "ok" to crack their software.
I don''t get it, it''s a federal offense to rip the tags off a pillow you OWN, but it''s perfectly legal to break into someones game and tear out all the things it took them years of work to develop.

It makes as much sense as pot being illegal and not alcohol, when alcohol kills people and is more hazardous to society.

I think our lawmakers do much too much crack with their hookers.

Of course you can call C functions thru ASM.. every hacker knows that!

(And no I''m not the same AP...)

Share this post


Link to post
Share on other sites
To me it sounds more like he wants to either mess with the games internal coding and display some results on the screen, or just alter some variables in the game like cheating. He never said he wanted to create a CRACK for the game so he could pirate it.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
quote:
Original post by Anonymous Poster
"why should it be such a big deal... "

It is a big deal and should be illegal. You aren''t simply "messing with memory on your computer" you are potentially robbing a company of it''s main source of revenue, which in my eyes makes you a thief.


Excuse me? How the FUCK does drawing on a game''s backbuffer qualify as robbing a company of revenue?

Idiot.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
AP chill, he is just learning more about how his computer operates. I don''t see anything wrong with it. As long as it is not a multiplayer game >:. Ripping tags off of pillows?! WTF are you on about. That is only for the sellers so that they can not sell used matresses and bedding, once you buy it you can do whatever the hell you want. In other words, GET BENT!

Share this post


Link to post
Share on other sites
quote:
Original post by bilsa
funny: ok, i see...

anonymous poster:
Uhm, lol... cmon it''s a freaking game... not like i killed you or something. Now btw, since i have bought this game and all i have done is messing with the memory in my computer, WHICH i OWN, so why should it be such a big deal...



But how would it be if i jumped from the place in the code that calls for the "FlipSurface" function and jumped to another codesection and from there somehow called my "C-function", would it be possible to call my own "C-function", that is located in my trainer, from within the game code memory?

So is it possible to call for a C-function with assembly code, like I described?

thx!


You''d want to change the screen image (with your text added) before it is written to the backbuffer, but without having the full graphics code for the game, it doesn''t seem likely that you''d be able to do that.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Behave. We DO track IP's, and we DO know who you are. -fel

[edited by - felisandria on October 22, 2003 2:16:46 PM]

Share this post


Link to post
Share on other sites
i hate to say this, but one of the reasons that your stuff isn''t showing up is because it''s stored on video card memory, which windows doesn''t particularly like you touching.

your best bet is to try and hook into the GDI. beware though, as it not only involves you hooking into a function, but you then have to work out a way of calling the original function from your hook afterwards otherwise the function would never be called. If this were something like SwapBuffers then it would be very critical.

if you want to get into hooks, then look up "software cracking" or something similar. Hooks are used to break copyright protection, but it usually involves a hell of a lot of assembly code, and for the sake of drawing one little picture onto the screen, i say just give up and try something worthwhile

Share this post


Link to post
Share on other sites
Due to the fact that most games have EULA provisions that restrict the use of third-party interference, I''m going to have to shut this down. Feel free to ask specific questions regarding how hooks and such work... just not in this context.

AP, get a username if you''re going to flame people.

-fel

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.