Register for your free account! | Forgot your password?

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

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

Advertisement



Editing conquer auth ip through dll injection

Discussion on Editing conquer auth ip through dll injection within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
tkblackbelt's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 266
Received Thanks: 85
Editing conquer auth ip through dll injection

Ok so I've been working on a proxy and been using nulls loader so far. I want to be able to redirect the client without using the loader. I messed around with the client through cheat engine and managed to redirect the client to my proxy, and I built a simple dll injector, and a dll in c++ that simply brings up a popup window. But I don't know were to go from there.

Would I just simple use a pointer to point to and change all address's that contain TQ's auth ip. Or do I have to use inline assembly?. Any advice and tips is appreciated .
tkblackbelt is offline  
Old 07/06/2011, 19:47   #2
 
elite*gold: 0
Join Date: Sep 2006
Posts: 774
Received Thanks: 8,576
If you need to change a string in the memory, something like this should work:

Code:
DWORD oldProtect;
VirtualProtect((LPVOID)0x12345678, 16, PAGE_READWRITE, &oldProtect);

const char* new_ip = "127.0.0.1";
memcpy((void*)0x12345678, new_ip, strlen(new_ip) + 1);

VirtualProtect((LPVOID)0x12345678, 16, oldProtect, &oldProtect);
phize is offline  
Thanks
2 Users
Old 07/06/2011, 23:21   #3
 
tkblackbelt's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 266
Received Thanks: 85
Quote:
Originally Posted by Synsia View Post
If you need to change a string in the memory, something like this should work:

Code:
DWORD oldProtect;
VirtualProtect((LPVOID)0x12345678, 16, PAGE_READWRITE, &oldProtect);

const char* new_ip = "127.0.0.1";
memcpy((void*)0x12345678, new_ip, strlen(new_ip) + 1);

VirtualProtect((LPVOID)0x12345678, 16, oldProtect, &oldProtect);
Thank you very much, that worked xD
tkblackbelt is offline  
Old 07/13/2011, 15:41   #4
 
elite*gold: 0
Join Date: Jun 2006
Posts: 457
Received Thanks: 67
errr, how is the IP found through CE?

Edit: Nvm, i asked the question without thinking. So by replacing all occurrences of proper server IPs, will the client be successfully directed to proxy? I know nothing about bot checks, i am a bit iffy about this.
shitboi is offline  
Old 07/13/2011, 16:26   #5
 
elite*gold: 20
Join Date: Aug 2007
Posts: 1,749
Received Thanks: 2,198
Just use Microsoft Detours
IAmHawtness is offline  
Thanks
1 User
Old 07/13/2011, 16:40   #6
 
elite*gold: 0
Join Date: Jun 2006
Posts: 457
Received Thanks: 67
I looked through that thread. but i cannot understand it. lol.
I even looked through the similar threads about ms detour in other game sections.
shitboi is offline  
Old 07/13/2011, 18:36   #7
 
elite*gold: 20
Join Date: Aug 2007
Posts: 1,749
Received Thanks: 2,198
Quote:
Originally Posted by shitboi View Post
I looked through that thread. but i cannot understand it. lol.
I even looked through the similar threads about ms detour in other game sections.
Using Detours is easy:

Include detours.h inside your project, find the function you wanna hook using

Code:
OriginalFunc = GetProcAddress(GetModuleHandle("TargetDLL.dll"), "TargetFunction))
Define your detoured function with the same signature as the original function, such as

Code:
int connect_Detoured(SOCKET s, const struct sockaddr *name, int namelen)
{
  //Change IP parameter here
}
Apply the detours using

Code:
DetourRestoreAfterWith()	
DetourTransactionBegin()
DetourUpdateThread(GetCurrentThread())

DetourAttach(OriginalFunc, DetouredFunc)

DetourTransactionCommit()
IAmHawtness is offline  
Thanks
1 User
Old 07/13/2011, 19:36   #8
 
elite*gold: 0
Join Date: Jun 2006
Posts: 457
Received Thanks: 67
Cool. I'll mess around with it tonight.
shitboi is offline  
Old 07/14/2011, 22:28   #9


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 793
Yep, I made a packet logger with that some time ago, it`s really easy to use, I can recommend it to everybody.
KraHen is offline  
Reply


Similar Threads Similar Threads
Editing Conquer.exe
04/02/2011 - CO2 Programming - 5 Replies
Hey everyone, quick question that probably won't get answered. How does one edit Conquer.exe to read a new ip address and port? I'm asking this not to edit Conquer.exe but to edit another game made by TQ that's only available in Asia. Thanks.
Question about editing conquer.exe
10/23/2010 - CO2 Private Server - 4 Replies
Hello well i havnt asked much here for long time but atm i am in project with my friends and we r tryin to make co1 but... we tried to delete directly from conquer.exe things like shoppingmall, nobility, item lock etc things that aint suppose to be in co1 and we cant find them, why we r tryin to delete them from conquer.exe i have read the Korvacs post that these things r in conquer.exe so i wish to get some tips or more explainations where they r exacly coz my friend whos programmer cant find...
Need Help with .Dll Injection / Editing Data
07/07/2009 - 12Sky2 - 0 Replies
Im looking for maybe some hints toward increasing the amount of possible mobs to be lured / mobs able to be hit with aoe , im pretty sure this can be done by editing a .dll or G_Data file in the ts2 folder , i just need some help to startt me off in a good direction , Please Pm me
[B]Conquer Editing Help Me Pls I Pay![/B]
04/07/2008 - Conquer Online 2 - 4 Replies
Hello, I'm Aschwin. I'm Trying to Learn How To Edit Conquer Online 2.0 I Pay On Paypal Money! Learn It Me And I Pay You Ok My Email Is [email protected] THIS IS WHAT I WANNA LEARN: 1:How To Edit Colors To Clothes Or Weapons. 2:How To Looks Like A Lvl 120 Character When I Using Lvl 115 Or Lower Stuff. 3:How To Edit Colors From Skill's( Don't Have To Learn But I Just Wanna Learn It For Fun ^^)
[TUT REQUEST] Dynamic Memory Editing via dll injection
01/09/2008 - General Coding - 2 Replies
Hi there im trying to edit the memory of a game via dll injection .. but the adresses arent static, they are dynamic, what means that they change every restart.. and i dont know how to edit dynamic adresses with a dll injection.. could anyone post a tutorial how i could do that?? thanks beforehand greetz eMale



All times are GMT +2. The time now is 17:32.


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.