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);
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?
@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 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.
@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().
@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 .
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?
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.
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
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.
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
[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