Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 14:18

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

Advertisement



Can anyone help me with generic code injection?

Discussion on Can anyone help me with generic code injection? within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2008
Posts: 111
Received Thanks: 26
Can anyone help me with generic code injection?

Sorry for English, I see this part of e*PvP is mainly in German, but my German sucks badly (although I spent 5 years trying to learn it with little success).

My question is not related that much to game hacking/coding and such, but code injection in general.

Here is the background - we have a core system client, which is basically a big GUI framework over plain telnet screens. Client also has a built-in OLE and DDE servers, which we are using to extract data from system in most simple cases.
Now comes the reason for my headache - if there is more than one client (quite possible since we have many environments to connect to) I cannot give user an option which one to use.
1. Client is written in VB6 and DOES NOT register its OLE server in ROT (RunningObjectsTable), thus I cannot select appropriate instance from there.
2. It has a launcher, which basically checks for updates, prepares environment stuff (like client-host negotiation protocol and stuff) and only then launches actual client. Actual client does not have *.exe, but *._ extension, so I cannot choose the right one using DDE either ([exe name without *.exe].[process ID])

The frigging piece of software is copyrighted and installed on like 500 workstations, thus I just cannot crack it to use at least DDE technique.

So I came to conclusion that the only option is to MAKE client register itself in ROT (client controlling with pure Windows API have been turned down for now, since it would be an overkill).

Can anyone help me at pointing out what steps I should take and how? For now guess in general it should be:
1. Write my own app in VB6 with OLE server which registers in ROT.
2. Inspect it with Olly to see registration dump.
3. Make an amended copy of client and inject the OLE registration into executable. Run and test, see if it works.
4. Make my own app which injects and executes server registration in ROT into victim.

Now, although I am not too experienced with Olly, guess I will manage with steps 1-3, but not so sure about 4, never done it before. Can you guys help me with that part? Like:
1. Writing function to inject.
2. Getting OLE handle from victim in that function.
3. Injecting function in victim and executing it.
Just a theory - how to, what should be done and what shouldn't to avoid access violation or the visit of General Protection.

Basically I want to make changes I could inject into executable to be a run-time function without modifying original file.
picadilly is offline  
Old 06/16/2009, 13:41   #2

 
Adroxxx's Avatar
 
elite*gold: 15
Join Date: Nov 2005
Posts: 13,021
Received Thanks: 5,324
#moved
Adroxxx is offline  
Reply


Similar Threads Similar Threads
Code/Dll Injection Tutorial
12/13/2014 - Tutorials - 28 Replies
Einleitung Hallo Elite PvPer! http://www.animiertegifs.de/smilies/eckige-Smileys /eckige-smileys-animiert-02.gif Auf folgende Fragen wirst du in diesem Tutorial Antworten finden: Was ist eine "Code/Dll injection" und was bringt mir das - kann man das essen? http://www.greensmilies.com/smile/smiley_emoticons _freddus_msn_fressen.gif Was sind Dll-Dateien (dynamische/statische Bibliotheken) - kann man die ebenfalls essen? http://www.greensmilies.com/smile/smiley_emoticons _essen.gif Wie...
Cheat Engine -> Code Injection
07/29/2009 - General Coding - 8 Replies
Also ich bin auch der suche nach einem guten Tutorial über Code Injection. Ich habe schon einige Trainer per CH erstellt. Aber heute bin ich auf was seltsames gestoßen ich habe Pointer gesucht und gefunden. Dann merkt ich das es nicht der letzte Pointer sein kann den als ich das Spiel neu startete wurde der Wert nicht im Pointer angezeigt. Also fing ich nochmal von vorne an. Als ich wieder den Pointer hatte bin ich weiter gegangen und wollte den Pointer zu dem Pointer finden das das Problem...
Code Injection Problem
01/03/2009 - General Coding - 4 Replies
Der Original Code im Assembler ist "mov esi, "(read) und müsste auf die Adresse der Aktuell aktivierten Waffe zeigen. Der Wert esi hat für jede Waffe einen festgelegten Wert während ecx eine Adresse(verändert sich bei waffenwechsel nicht) beinhaltet. Mir geht es darum den Wert während die Schleife durchläuft wieder um 1 zu erhöhen wobei ich ein kleines Problem mit dem Syntax habe. Wie ändere ich den Code so um das er den Wert an der Adresse (esi, ) um 1(oder mehr) erhöht? Der Interpreter in...
code injection hacks
12/07/2008 - Metin2 - 2 Replies
hey, hatte kein bock sufu zu benutzen, also frag ich ma:D gibt es schon hacks, die über eine original metin2.dll laufen?
Code injection
12/28/2005 - General Coding - 2 Replies
Just to gathering a 'feeling' of bestpractise/standards from the elite .. ... is madcodehook de facto standard if you wanna thread inject ? or what other alternatives exists ? Thanks !



All times are GMT +1. The time now is 14:18.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.