stupid error

Posts 1–15 of 17 · Page 1 of 2
stupid error
hi just got back into hacking in c++, made a simple dll hack.
code:
Code:
#include <windows.h>
#define SV_CHEATS 0x000EA59C

void thread()
{
    for(;;)
	{
		*(int*)(SV_CHEATS) = 1;
		Sleep(100);
    }
}

BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpReserved )
{
	if( dwReason == DLL_PROCESS_ATTACH )
	{
		CreateThread( NULL, NULL, (LPTHREAD_START_ROUTINE)thread, NULL, NULL, NULL);
	}
	return TRUE;
}
i inject but nothing happens... using windows 7
Lmao. what smart ass gave you this code?! xD
i typed it up, except for the dllmain....
why do you say "smart ass"
Quote Originally Posted by kibbles18 View Post
i typed it up, except for the dllmain....
why do you say "smart ass"
Nothing. I thought someone gave you some bogus code.

Are you hacking a source game? And where did u get this address from?
this is just solitaire... i cant seem to get any hacks to work... i got a new computer thats got win7 x86, i think that this is the problem. i used to hack on my old xp fine.... the addy is from CE , its not wrong.

I was trying to hack a source game, but it wasnt working so i rolled back to an easy game
Quote Originally Posted by kibbles18 View Post
I was trying to hack a source game, but it wasnt working so i rolled back to an easy game
Okay that's why I was confused as to why it was named SV_CHEATS.

Anyway let's see. Two more question.... are you injecting as soon as the process starts up?
And what was it supposed to do?

no, not injecting when it starts up. i think the problem has to do with my OS.
Quote Originally Posted by kibbles18 View Post
no, not injecting when it starts up. i think the problem has to do with my OS.
Well your gonna want to do that. Most of these injectors hook the LoadDLL Function, and if that func is already called, before you inject hooking it after is not gonna help much.
Quote Originally Posted by why06 View Post


Well your gonna want to do that. Most of these injectors hook the LoadDLL Function, and if that func is already called, before you inject hooking it after is not gonna help much.
its not the problem, trust me. i just tried injecter b4 and after. worked on XP. p.s do you have win 7?
Quote Originally Posted by kibbles18 View Post
its not the problem, trust me. i just tried injecter b4 and after. worked on XP. p.s do you have win 7?
Nope, btw you do know that the solitaire on xp may not be the same one as on Win7?
the point is that i cant seem to be able to edit the memory or create the thread on win 7 but i can on win xp. the source game in question i could hack on my xp, i cant on my win7.
Quote Originally Posted by kibbles18 View Post
the point is that i cant seem to be able to edit the memory or create the thread on win 7 but i can on win xp. the source game in question i could hack on my xp, i cant on my win7.
There's really not much difference between Xp and Win7, It should work on both. It's possible your injector simply doesn't work on Win7. But idk. I have a feeling we're missing something. =/
ok well i finnaly got it to work, and it was a bitch, tip to all win7 users use stealth inject, thats what i had to do
Quote Originally Posted by kibbles18 View Post
ok well i finnaly got it to work, and it was a bitch, tip to all win7 users use stealth inject, thats what i had to do
So it wasn't your coding, but your injector. :3

Shaun to the rescue =3
the problem is not gone, it does not work with all games (the injector)
Posts 1–15 of 17 · Page 1 of 2

Post a Reply

Tags for this Thread

None

Talk with us