If we would like to stay stealth we must just choose stealth thing like this.
Dear guys i'm posting this hook cuz it will be really usefull for people, its works to any GAME, undetected to any ANTICHEATS. THERE IS NO ANTICHEATS Which is checking for it.
What does i'm doing,
Intercept EnterCriticalSection from d3d9 and wait for exactly returnaddress
of the follow function exactly in this case D3DReset, D3DPresent, D3DDrawIndexPrimitive.
Its current works to any OS From Windows XP To windowS 8.1.
All Credit goes to me. GHTheBoss
Skype GHTheBoss
its the current hook which i'm using to any game since october 2012.
i'm posting this since i saw a forum where our know guys called CYNO ASKING for help i just posted it for him full
nice idea, criticalsection being entered/left in many parts in d3d9, really good place for hook since it is being called in nearly all idirect3ddevice9 functions
edit: code miss reinterpret_cast, nowdays its really important use it.
btw kazbah might want to wonder whats going on since a while inside your website:
Interfering with mutex semaphores is a really bad idea, since they are often built using spinlocks (busy waiting for an unlock event using instructions like xchg). This may occasionaly cause a deadlock.
We have a sticky thread for posts like this. No need to create a new thread.
Interfering with mutex semaphores is a really bad idea, since they are often built using spinlocks (busy waiting for an unlock event using instructions like xchg). This may occasionaly cause a deadlock.
We have a sticky thread for posts like this. No need to create a new thread.
In this case, that what you said wont happen for sure. that is a certain.
Raz9r we must always stay stealth everywhere specially for who coding and selling cheats.
Interfering with mutex semaphores is a really bad idea, since they are often built using spinlocks (busy waiting for an unlock event using instructions like xchg). This may occasionaly cause a deadlock.
i didn't myself test the hook, i understand perfectly your thought but i'm sure that this situation is never happening in that case plus i want to remember you we are writing cheats and we should stay stealth(a concept i guess you completely forgot or never had), so:
in my opinion, that iat hook WAS a good idea
I don't consider a hook good that might create a deadlock, ultimately ending up freezing the application. It's one of those things that work almost all the time, but may fail in a time critical situation.
I don't consider a hook good that might create a deadlock, ultimately ending up freezing the application. It's one of those things that work almost all the time, but may fail in a time critical situation.
never it fail. also in critical situation.
if you have anything better please illuminate us!
BTW this is always a good way, specially where the anti cheats are kicking the ***, this may will be taken in consideration.
It may actually fail. Consider what happens if active thread contexts switch while your hook is being executed. Another (then active) thread might call LeaveCriticalSection and then EnterCriticalSection on the same Critical Section (which is a Kernel Level Object), causing your code to be executed in a faulty/unintended manner. One of which is possibly deadlocking the application.
I don't consider a hook good that might create a deadlock
basing it on your viewpoint, that's indeed not good cause what you said might actually happen, playing with criticalsection is not the best thing
but as i already said, this specific hook, which redirect iat ptr of d3d9(so it intercepts just d3d9 calls, not that this is important but just specifying) is not causing such issues aaand i wonder what anticheat is checking iat of d3d9(atleast till now)
Quote:
Originally Posted by Raz9r
It may actually fail. Consider what happens if active thread contexts switch while your hook is being executed. Another (then active) thread might call LeaveCriticalSection and then EnterCriticalSection on the same Critical Section (which is a Kernel Level Object), causing your code to be executed in a faulty/unintended manner. One of which is possibly deadlocking the application.
basing it on your viewpoint, that's indeed not good cause what you said might actually happen, playing with criticalsection is not the best thing
but as i already said, this specific hook, which redirect iat ptr of d3d9(so it intercepts just d3d9 calls) is not causing such issues aaand i wonder what anticheat is checking iat of d3d9(atleast till now)
but as i already said, this specific hook, which redirect iat ptr of d3d9(so it intercepts just d3d9 calls) is not causing such issues aaand i wonder what anticheat is checking iat of d3d9(atleast till now)
i wasnt asking for help on hooking but because of another problem. as you can read in my 2nd post on that forum i have a similar hook like that for some time...
It may actually fail. Consider what happens if active thread contexts switch while your hook is being executed. Another (then active) thread might call LeaveCriticalSection and then EnterCriticalSection on the same Critical Section (which is a Kernel Level Object), causing your code to be executed in a faulty/unintended manner. One of which is possibly deadlocking the application.
what about, did u read code ? xD its its checking for return address mate.
Quote:
Originally Posted by Cyno™
i wasnt asking for help on hooking but because of another problem
Problem solved. Please cyno a little hint take kazbah mouth close. around. or we must spread ur site file including database.
You quite obviously did not read his question over on UC. Still mad you're banned over there?
no just wanted to help him, and i helped him. with out make him to waste time.
you seems mad right now. since u tryed to attack me and u got stucked. Like if u didn't read the code xD and just trying to attack directly and you got owned as well this time.