Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 14:29

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

Advertisement



[Question] Dll injection.

Discussion on [Question] Dll injection. within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2008
Posts: 490
Received Thanks: 595
[Question] Dll injection.

I got a simple question, If a dll is injected into the CO process could i make another aplication use that Dll and functions within it? to send like data to those functions.

For example my dll contains the item dropping function my program has to send info to that dll to decide wich item to drop and on turn that same dll containing the right info now must do action within CO -> dropping the item.

If anyone can answer that and maybe provide me with some pointers that would be very appreciated!
I have searched google over and over, all i find is how to do a dll injection wich i already know how, All i need is somehow to make those 3 communicate together
_fobos_ is offline  
Old 12/17/2008, 20:21   #2
 
giacometti's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 319
Received Thanks: 49
_fobos_

Nice to see your evolution. Here are some tips about what you asking: (1) make your full program inside the dll, so no need to external communication; (2) You can use windows registry or even codecaves to comunicate with your "main" application.

I went throught number 2 indeed, but (1) is cleaner and nicer, and you can improve it faster if you are migrating to an injection approch.

Good luck,
Giacometti.
giacometti is offline  
Old 12/17/2008, 21:52   #3
 
elite*gold: 0
Join Date: Sep 2008
Posts: 490
Received Thanks: 595
Quote:
Originally Posted by giacometti View Post
_fobos_

Nice to see your evolution. Here are some tips about what you asking: (1) make your full program inside the dll, so no need to external communication; (2) You can use windows registry or even codecaves to comunicate with your "main" application.

I went throught number 2 indeed, but (1) is cleaner and nicer, and you can improve it faster if you are migrating to an injection approch.

Good luck,
Giacometti.
Thanks for your answers, and yes i have been thinking of putting the whole app. inside the DLL, My main point would be tho is the creation of forms -> Hotkey -> form.create or something, I have choise to write this app in two ways C++ or delphi, VB just wouldnt cut it for this, i do know theres a way to write normal dll's in VB but last i know is that it's not very stable.
Another reason why i asked if it could be possible to have a 3 way communication is because i want it to also function like a loader, have everything in 1 project -> load game (Inject dll, make multi etc.. etc..) -> call functions from dll wich then respond in game.

The only info i found about forms is creating the app like would do as an executable and only change the building format to dll, i have not tested this yet, but i will try this out.
Thanks for your help once again
If you have any further information that you think i could use i can use all the help i can find

Thanks
_fobos_ is offline  
Old 12/18/2008, 01:54   #4
 
elite*gold: 0
Join Date: Jun 2006
Posts: 965
Received Thanks: 576
I was doing this is CoPlugin but lost interest because no one showed interest.
high6 is offline  
Old 12/18/2008, 12:45   #5
 
elite*gold: 0
Join Date: Sep 2008
Posts: 490
Received Thanks: 595
Quote:
Originally Posted by high6 View Post
I was doing this is CoPlugin but lost interest because no one showed interest.
Yeah people dont really show interest for these kind of things, because well dll injection is also used for other things.
But its the only way to create a good hack now tho
As you are familiar with it, any tips?
_fobos_ is offline  
Old 12/20/2008, 06:22   #6
 
Ian*'s Avatar
 
elite*gold: 0
Join Date: Nov 2006
Posts: 805
Received Thanks: 464
That is what I was doing with my CLSBot, but like high6, lost interest.
I read what you said quickly, so I may have understood incorrectly.
What you're trying to do is get a main program (The Gui?) to load a dll which from there can load another dll containing different functions, correct?
Ian* is offline  
Old 04/21/2009, 14:36   #7
 
clintonselke's Avatar
 
elite*gold: 0
Join Date: Feb 2007
Posts: 348
Received Thanks: 2,175
Why not use network sockets, have ur injected DLL host on localhost port 1234 or whatever, then have your other program to establish connection on localhost port 1234 to talk to the dll / send it (serialised) parameters / trigger functions / etc.. I know alot of the linux applications use this method to talk to one another.
clintonselke is offline  
Old 04/21/2009, 15:43   #8
 
elite*gold: 0
Join Date: Jun 2006
Posts: 965
Received Thanks: 576
Quote:
Originally Posted by clintonselke View Post
Why not use network sockets, have ur injected DLL host on localhost port 1234 or whatever, then have your other program to establish connection on localhost port 1234 to talk to the dll / send it (serialised) parameters / trigger functions / etc.. I know alot of the linux applications use this method to talk to one another.
That would be a stupid waste of a socket. Might as well use pipes.
high6 is offline  
Old 04/21/2009, 16:15   #9
 
clintonselke's Avatar
 
elite*gold: 0
Join Date: Feb 2007
Posts: 348
Received Thanks: 2,175
Yea, pipes sound good if ya can get that going.

Another option is to use LPC (Local Procedure Call). It is similiar to RPC (Remote Procedure Call), but it is designed for communication between threads and processes running on the one machine.

heres a link that also contains example source down the bottom:

Good Luck ppl
clintonselke is offline  
Old 04/21/2009, 17:08   #10
 
elite*gold: 0
Join Date: Sep 2008
Posts: 490
Received Thanks: 595
Woah thats an old topic I solved the problem i was having tho!

Besides that im not that great with network coding
when i have the time I will study up on that.
Any 'must read' documentation is welcome :P

What i wanted to do was having a GUI talking with a dll thats loaded/injected in Conquer.
that way the GUI could for example set x and y coordinates which the injected dll would use for the functions it was mimicing.
anyway I solved that with Ian*'s help
and decided to go like he said, putting the whole application in 1 dll, inject it and trigger the 'main' app with a hotkey.
_fobos_ is offline  
Old 04/23/2009, 00:07   #11
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
Why don't you just create a GUI inside the DLL?
tao4229 is offline  
Old 04/23/2009, 00:39   #12
 
elite*gold: 0
Join Date: Jun 2006
Posts: 965
Received Thanks: 576
Quote:
Originally Posted by tao4229 View Post
Why don't you just create a GUI inside the DLL?
That is what he did to solve it.

Also there is a problem with that. What if conquer.exe closes? Then your app is forced to close.
high6 is offline  
Old 04/23/2009, 00:46   #13
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
Quote:
Originally Posted by high6 View Post
That is what he did to solve it.

Also there is a problem with that. What if conquer.exe closes? Then your app is forced to close.
Possibly handle the DLLMain with the unload parameter? (I'm not experienced in DLL injection, but it has some logic in there)
Go on from there.
tao4229 is offline  
Old 04/23/2009, 00:50   #14
 
elite*gold: 0
Join Date: Sep 2008
Posts: 490
Received Thanks: 595
Quote:
Originally Posted by high6 View Post
That is what he did to solve it.

Also there is a problem with that. What if conquer.exe closes? Then your app is forced to close.
That's okay tho as the dll with the functions must be injected in conquers memory space, better the app to close with it then.
thru a loader load the dll on game start-up so always a new instance of the bot.
Only problem really are the hotkeys to bring up the main app. because for example if you run 2 clients you can only open your bot on the first, but thats just a small problem can set global hotkeys other then that it worked fine I dont know if you tested SkillerSlut when i still updated it, botted perfectly in the background
_fobos_ is offline  
Reply


Similar Threads Similar Threads
Sql injection
01/19/2010 - Kal Online - 34 Replies
Eine frage woher bekomme ich den Sql Injection + tut würde mich freuen wenn einer mir weiter hilft danke
[QUESTION] Auto Assembly / Code Injection
05/30/2009 - Dekaron - 2 Replies
Ok, I just need to know one thing. When you use code injection to search an address (example, speed hacking address), how do you make it so your able to send it to the table? You need the & but, I don't know where, or if I can put that in to make it work. Please post if it's possible, and if it is, how? Thanks so much.
WTB sql injection
11/27/2008 - Trading - 0 Replies
prove me that your coin hack work and i will buy it
Sql Injection
09/28/2005 - Main - 5 Replies
anyone actuley done it?i have been testing with diffrent stuff i cant seem to get it work right. i have readed diffrent tutrials and not even 1 showed me a LIVING example. anyways i got the general idea of it. heres few link: http://www.governmentsecurity.org/articles...sicT utorial.php http://www.acunetix.com/websitesecurity/sq...l-in jection.htm



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


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