I'm using code off some tutorial for detouring the sendto(), but the packets are obfuscated so I switched to parent function. The Tramp once again, doesn't work. How do I go about finding the issue?
seems that you are trying to hook a packet function? You have to clearly describe what you are trying to do and which function is what instead of just giving a chunk of code without context...
Generally tho, when I do my hooks I never use __stdcall for the trampoline function. Because stdcall pops parameters at the end and can corrupt the stack. But then again I am not sure how you are doing your detour so maybe this is not true for you. (Are you using the microsoft detour library?)
Remember: If you have something like "retn 10h", it can only be __stdcall or __thiscall. Time ago, there was a nice Video here made by Mr.Sm!th (or so). It was german so I barely understood, but for you this should be fine.
Remember: If you have something like "retn 10h", it can only be __stdcall or __thiscall. Time ago, there was a nice Video here made by Mr.Sm!th (or so). It was german so I barely understood, but for you this should be fine.
depends heavily on the compiler used.
could be fastcall or a custom calling convention as well.
AU3 Detour UDF - A simple way 05/21/2017 - AutoIt - 30 Replies Here we go. Example is included
If you have any wishes concerning functions, just post here. same with questions!
Functions:
OpenProcess
Returns the Handle of the given Process by Id
C++ Detour & Dll 09/14/2012 - C/C++ - 7 Replies Ich stehe gerade vor einem mir unerklärlichem Problem.
Bis gerade eben dachte ich noch es liegt an meiner Unfähigkeit mit Detorus umzugehen bzw. meinen Reversing Künsten, aber jetzt ist mir aufgefallen, dass es scheinbar gar nicht direkt an den Detour-Funktionen liegt, sondern an meiner Dll.
Um das ganze ein bisschen genauer zu beschreiben:
Ich wollte endlich mal mit dem Thema Detours anfangen, klingt auch alles soweit logisch und ich glaube auch es verstanden zu haben. Also habe ich mir...
Detour und Rehook?! oder nur Detour? 09/16/2011 - WarRock - 4 Replies Hallo EPVP'
Ich hätte mal ne kleine Frage an die D3D Coder C++.
Ich hab schon meinen eigenen Hack gecoded.
Nun woltle ich D3D Funcs adden, hab auch den richtigen code. In-Game geht es jedoch NICHT!.
Nun wurde mir von jemanden gesagt ich bräuchte eine Detour.
C++ WndProc Detour 07/27/2011 - C/C++ - 4 Replies Hi,
ich will das WndProc von einem fremden Programm Detouren, aber ich weiß nicht wie der Name der WndProc ist... Wie kann ich ihn herausfinden?
Also das Programm hat nur ein Fenster sagen wir das Fenster heißt "Test" und ich habe das Handle dazu kann ich jetzt irgendwie den Name der WndProc herausfinden?
MFG!