Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 21:26

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



C# Detours/Hooks

Discussion on C# Detours/Hooks within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
vitalka's Avatar
 
elite*gold: 0
Join Date: May 2007
Posts: 160
Received Thanks: 23
C# Detours/Hooks

Hey leute ich beschäftige mich seit einiger Zeit mit Detours in C++, da diese nich meine Hauptsprache ist sonder C# habe ich mal ein paar Fragen, bissher habe ich das so gemacht das ich mir speicher über virtualallocex reserviert habe und dort meine funktion,also jeden byte einzeln geschrieben habe und dann ein JMP vom MainModul in meinen Speicher, so kann ich aber schwer informationen auslesen da ich kein Zugang auf den Stack habe(falls doch belehrt mich eines besseren).

Bin jetzt auf Easyhook und Whitemagic gestoßen welche eine Detourfunktion über Delegates erlaubt(habs nicht ganz verstanden)

Würde gerne mal versuchen über Whitemagic oder Easyhook z.b. connect zu hooken, was bietet mir das denn für möglichkeiten? Gibts nen Tut?
vitalka is offline  
Old 02/12/2012, 11:43   #2
 
elite*gold: 42
Join Date: Jun 2008
Posts: 5,425
Received Thanks: 1,888


Wenn du mehr zu dem Thema findest, immer her damit. Bin ich auch sehr dran interessiert.
MoepMeep is offline  
Old 02/12/2012, 15:20   #3
 
vitalka's Avatar
 
elite*gold: 0
Join Date: May 2007
Posts: 160
Received Thanks: 23
Haha soweit war ich mittlerweile auch schon war auch dadrauf das sagt mir leider nichts, habe aber noch das hier gefunden:

vitalka is offline  
Old 04/18/2012, 16:52   #4
 
elite*gold: 0
Join Date: May 2010
Posts: 7
Received Thanks: 1
Freut mich dass mein Blog verlinkt wurde

Was genau verstehst Du denn nicht? Im Grunde musst Du ein Funktionstyp in Form eines Delegates erstellen. Dann erstellst du einen statischen Funktionsmember aus diesem Funktionstyp und machst den Detour, dann wird deine statische Funktion angesprungen...
Hab das ganze mit Erfolg im MW2 MP implementiert, funktioniert also auf jeden Fall =)

Noch Fragen?
Greez Easy
easysurfer123 is offline  
Old 04/18/2012, 23:11   #5


 
MrSm!th's Avatar
 
elite*gold: 7110
Join Date: Jun 2009
Posts: 28,902
Received Thanks: 25,407
Wenn du ASM manuell injizierst, kannst du natürlich über das ESP Register auf den Stack zugreifen.
MrSm!th is offline  
Reply


Similar Threads Similar Threads
Microsoft Detours 2.1
02/28/2012 - CO2 Programming - 26 Replies
When I was working on a proxy a while ago I needed a way redirect the connections from conquer client to my proxy. There is a couple of ways to achieve this but I choose detours (2.1). However I noticed that there was a lack of tutorials on how to actually start using Microsoft detours (or I couldn't use Google properly, which is also possible :D). So here's a little step-by-step tutorial how to start using them and I will also show how to detour Connect and ShellExecute functions. Step 1 -...
c++ Python.h und detours.h
06/15/2011 - C/C++ - 4 Replies
hi ich benutze Microsoft visual c++ 2010 und wenn ich #include "windows.h" #include <Python.h> #include "detours.h" benutze wird nur windows.h gefunden
[C++] Eigene Detours Teil1
04/13/2011 - Coding Tutorials - 23 Replies
Ein dickes Hallo an alle :D, Ich möchte euch mit diesem Tutorial den Umgang mit Detours zeigen. Zu allererst klären wir die spannende Frage, was ein Detour ist: Ein Detour führt eine bestimmte Funktion von dir aus, sobald eine andere Funktion, die von dir bestimmt wird, aufgerufen wird. So ruft man bei Trainer mit einem D3D-Menü immer dann die eigene Methode zum Zeichnen des Menüs auf, wenn die Funktion EndScene() aus der D3D.dll aufgerufen wird. Also brauchst du für ein Ingame-Menü ein...
MS Detours 1.5
07/16/2010 - Kal Online - 10 Replies
hi, i'm having problem trying to compile my dll using ms detours 2.1 (not 1.5, sorry) detours.lib(detours.obj) : error LNK2001: unresolved external symbol "struct HINSTANCE__ * __stdcall Detoured(void)" (?Detoured@@YGPAUHINSTANCE__@@XZ) G:\KalOnline\d3dx9_29.dll : fatal error LNK1120: 1 unresolved externals could someone tell me how to solve it? could not google it.
Can EDX Detours be used for multibotting
06/19/2010 - SRO Private Server - 12 Replies
After editing source code can this be done? In EDX Detours thread he wrote this app can be used for another programs after tweaking the source. But i don't have any programming skills,so anyone who knows c++ please take a look at it http://www.elitepvpers.com/forum/sro-guides-templat es/308740-guide-using-windows-detours-redirect-sil kroad-proxy.html



All times are GMT +1. The time now is 21:27.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.