Hoping there is a similar function in the mach headers, I haven't looked into it @ all yet. But I imagine my inject app (obviously not created by me) will give me some good pointers.
Then I'm going to work on understanding what warden is actually doingOr create a "monitor" of sorts
https://tanaris4.com
dlopen/dlsym/dlclose.
Search for functions that reference the string 'AreaTriggerCheck', one of those (0x005831B0 on the build 3.3.3 11723) is called several times per second, even when not ingame.
Always call the original function or you'll find it very difficult to enter portals(hint)
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
"I cried a little earlier when I had to poop" - Sku
Why wouldnt you use the LD_PRELOAD method?
LD_PRELOAD is used in injection yes? I can inject fine, I just struggled w/detouring the function (I can do it, just need to invest more time in it)
https://tanaris4.com
I've detoured glFinish and it worked, I think you should try it
Here is an example with LD_PRELOAD:
and start wow withCode:#include <dlfcn.h> #include <GL/gl.h> #include "mystuff.h" void glClear(unsigned int _mask) { static void (*real_glClear)(unsigned int) = 0; if (!real_glClear) real_glClear = (void (*)(unsigned int))dlsym(RTLD_NEXT, "glClear"); real_glClear(_mask); static Mystuff* p = 0; if (!p) p = new Mystuff; p->Execute(); }
LD_PRELOAD=~/mylib.so wine ~/apps/wow/Wow.exe
WoW runs on OS X natively, so that doesn't apply? Maybe? Or I just change the command line?
https://tanaris4.com
I think it works, but can't be sure.
Just try changing the cmd line![]()
DYLD_INSERT_LIBRARIES was the mac equivalent of LD_PRELOAD although I can't test it right now (I formatted my hackintosh ;-P)
Something I just thought of while I was reversing an online poker app... Why do you even need to hook a DirectX or OpenGL function? Couldn't you just spawn your own thread w/in wow and have it run every 0.1 seconds to check to see if it should do anything? Is this dumb?
https://tanaris4.com
for some stuff (for example running protected lua commands via dostring) you will have insufficient rights if you are calling it from your own thread
Thread safety.
[16:15:41] Cypher: caus the CPU is a dick
[16:16:07] kynox: CPU is mad
[16:16:15] Cypher: CPU is all like
[16:16:16] Cypher: whatever, i do what i want