Register for your free account! | Forgot your password?

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

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

Advertisement



[Release] Advanced hooking

Discussion on [Release] Advanced hooking within the CO2 Programming forum part of the Conquer Online 2 category.

Closed Thread
 
Old 03/27/2012, 09:42   #166
 
elite*gold: 0
Join Date: Feb 2009
Posts: 12
Received Thanks: 0
Request

how can i send packet to the Client ...

when i do this the client crash

Code:
                int packetAddr = (int)m_dbg.AllocateMemory((uint)packet.Length);
                m_dbg.WriteByteArray(packet, packetAddr);

                using (MemoryStream ms = new MemoryStream())
                using (BinaryWriter writer = new BinaryWriter(ms))
                {
                    // push packet size
                    writer.Write((byte)0x68);
                    writer.Write(packet.Length);

                    // push packet address
                    writer.Write((byte)0x68);
                    writer.Write(packetAddr);
                    
                    // store NetWorkClass address in ESI
                    // ESI 0xBE
                    writer.Write((byte)0xBE);
                    writer.Write(NetworkClass);

                    // store RecvPacket() address in EAX                    
                    writer.Write((byte)0xB8);
                    writer.Write(0x71422F);

                    // call function stored in EAX
                    writer.Write(new byte[] { 0xFF, 0xD0 });

                    // return
                    writer.Write((byte)0xC3);

                    m_dbg.ExecuteCode(ms.ToArray());
                }

                m_dbg.FreeMemory(packetAddr);
kudo2002 is offline  
Old 03/27/2012, 20:52   #167
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
Quote:
Originally Posted by kudo2002 View Post
how can i send packet to the Client ...

when i do this the client crash
im trying to figure out the same thing.
#Also does anyone know if when doing something on the client do i have to forward the packets to the server?
-Shunsui- is offline  
Old 03/27/2012, 22:42   #168
 
elite*gold: 0
Join Date: Feb 2012
Posts: 16
Received Thanks: 2
Quote:
Originally Posted by { Angelius } View Post
Happens when you hook Conquer.exe not all the time but it does happen, Conquer starts to run really slow and the cpu usage jumps up.

I`m not sure but i think its related to the AdvancedHooking Library it self So many Exceptions/access validations/etc

And the only way to fix that is by making some changes to the debug loop inside the dll.

Not sure its just a theory. it happens that i`m coding my own hooker lib and same thing happened cept that after handling those Exceptions it went away.
How would I handle these exceptions???
I'm trying to recompile de debug_loop function but I get lots of undefined references for the other functions. What can be the problem?

I'm using Reflector with reflexil plugin
ruievmonteiro is offline  
Old 03/27/2012, 23:06   #169
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
@kudo2002
What you posted should send packets to the Server not to the client and to send packets to the client you should look into the receive loop in the client, understand how it works, and then think about sending packets i guess.

@-Shunsui-
I Don't understand your question, are you talking about blocking packets from being sent to the server?

@ruievmonteiro
Handling those exceptions is something that you should be looking up online google it or something.

And the reflector job is to give you an idea of whats going on in side that dll not a copy paste source code.
{ Angelius } is offline  
Old 03/28/2012, 01:18   #170
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
@Angelius im talking about, When catching the packets that are sent to the server
and recieved from the server, do i have to forward them using SendPacket function.
-Shunsui- is offline  
Old 03/28/2012, 05:11   #171
 
elite*gold: 0
Join Date: Dec 2007
Posts: 108
Received Thanks: 42
Quote:
Originally Posted by -Shunsui- View Post
@Angelius im talking about, When catching the packets that are sent to the server
and recieved from the server, do i have to forward them using SendPacket function.
No. If you are not blocking packets you do not need to call SendPacket().
Belth is offline  
Thanks
1 User
Old 03/29/2012, 11:39   #172
 
elite*gold: 0
Join Date: Feb 2009
Posts: 12
Received Thanks: 0
Quote:
Originally Posted by { Angelius } View Post
@kudo2002
What you posted should send packets to the Server not to the client and to send packets to the client you should look into the receive loop in the client, understand how it works, and then think about sending packets i guess.
thank you, could you help I'm still nop in assmebly i can't fully understand those

LOCAL.1
LOCAL.3
what LOCAL mean i can't understand, i googled but with no result .
kudo2002 is offline  
Old 04/08/2012, 19:33   #173
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
so how exactly does this loop packet receive work?
-Shunsui- is offline  
Old 04/10/2012, 02:34   #174
 
elite*gold: 0
Join Date: Dec 2007
Posts: 108
Received Thanks: 42
Quote:
Originally Posted by -Shunsui- View Post
so how exactly does this loop packet receive work?
Check .

For client 5580 the address is 713A7E.
Belth is offline  
Thanks
2 Users
Old 04/14/2012, 02:02   #175
 
elite*gold: 0
Join Date: Jan 2007
Posts: 118
Received Thanks: 20
what is now the new address for send and receive?
xmen01235 is offline  
Old 04/21/2012, 13:06   #176
 
elite*gold: 0
Join Date: Feb 2012
Posts: 16
Received Thanks: 2
I've been away for a while and now I've noticed that the send and receive functions do not work the same way as before. TQ may have updated the communications module inside the client. Am I right? Does anyone know how these functions work now?
ruievmonteiro is offline  
Old 04/21/2012, 19:13   #177
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
The send function is still the same. only its address has changed.
The receive loop has been changed for sure.

private const int SendPacketAddress = 0x6C0A81;
private const int NetworkClass = 0x96FC78;
private const int RecvLoopAddress = 0x6C05E8;

Some of the receive loop:

Ps: the addresses i provided are not an actual calls i only breakpoint at those addresses to pull whatever data i need. but i think its enough to get you started.
{ Angelius } is offline  
Thanks
3 Users
Old 04/23/2012, 20:29   #178
 
elite*gold: 0
Join Date: Apr 2007
Posts: 223
Received Thanks: 30
how do you get the address as i have asked but no one has answered me about it an i have been trying to figure it out how to do it but cant figure it out
PKDemon is offline  
Old 04/24/2012, 21:22   #179
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
There is a lot of ways to got those addresses and i believe that a few pages back in this thread Belth mentioned a way or 2 on how to find them.

As for how I find them i breakpoint on certain addresses near the win_sock Send/rec calls and trace them back to where they were called from (call stack/call tree) makes it easy as finding a string name.
{ Angelius } is offline  
Thanks
1 User
Old 04/25/2012, 05:43   #180
 
elite*gold: 0
Join Date: Apr 2012
Posts: 4
Received Thanks: 1
I really like this dll, but the "advanced hooking" doesn't attach to new threads, why not ?
Can you add it please, IAmHawtness ?? Or can't you just post the sourcecode please ? with reflector its possible to get it out anyway, but the formatting is lost, also some variable names are missing :/

It's a very important feature for me!

Sorry if i didn't see it, if you already released it
chrisSch is offline  
Closed Thread


Similar Threads Similar Threads
[RELEASE] Make a more Advanced NPC
02/02/2011 - CO2 PServer Guides & Releases - 55 Replies
This guide will show you how to make a NPC. I will update this post daily with new things to add to your NPC. First. We are going to take this NPC from Paralyzer and modify this a little bit. here is the link if you have never made a simple NPC. http://www.elitepvpers.com/forum/co2-pserver-guide s-releases/492901-release-how-code-decent-npc-npcs -txt-entry.html Easiest stuff first. How to make an NPC check for a specific level. To make an NPC check for a level we can do this by adding...
Advanced Tribalwars Bot Release
05/31/2010 - Browsergames - 20 Replies
Ein Bot für das Browsergame "Die Stämme". Features: Multiaccountfähig baut Dörfer selbstständig aus Bot merkt sich, wann ein Gebäude gebaut werden kann, bzw. wann es fertiggestellt ist Information: Bei "Server" z.B. de60.die-staemme.de o.ä. eingeben.
ReViSiOn [Advanced Public Release]
02/13/2009 - WarRock Hacks, Bots, Cheats & Exploits - 5 Replies
http://i295.photobucket.com/albums/mm150/gfx_forum s/revvv3.png ReViSiOn Public Beta 1.2 _____ Working features: No Recoil No Spread



All times are GMT +1. The time now is 13:45.


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.