|
You last visited: Today at 02:38
Advertisement
[RELEASE] My first packet builder.
Discussion on [RELEASE] My first packet builder. within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
05/06/2010, 11:01
|
#1
|
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
|
[RELEASE] My first packet builder.
This is a release of my first, packet builder I've ever made. It is very old, and I doubt there aren't any better around here, this one is just pretty logical to my opinion, where others failed.
This will be a part of the things I will be dumping after I formatted my PC without being prepared. I'm sorry for all other info I still had on the CO2 PServer development, it is not available for my any more. I was going to release it all though, but not just yet.
Code:
public class PacketCreate
{
private byte[] buf = new byte[800];
private short pos;
private readonly byte[] TQSERVER;
public PacketCreate()
{
TQSERVER = Encoding.ASCII.GetBytes("TQServer");
}
public void Header(int PacketType, int PacketLength)
{
WriteShort(PacketLength);
WriteShort(PacketType);
}
public void WriteByte(int val)
{
buf[pos] = (byte)val;
pos += 1;
}
public void WriteByte(uint val)
{
buf[pos] = (byte) val;
pos += 1;
}
public void WriteInt(int val)
{
buf[pos] = (byte)val;
buf[pos + 1] = (byte)(val >> 8);
buf[pos + 2] = (byte)(val >> 16);
buf[pos + 3] = (byte)(val >> 24);
pos += 4;
}
public void WriteInt(uint val)
{
buf[pos] = (byte)val;
buf[pos + 1] = (byte)(val >> 8);
buf[pos + 2] = (byte)(val >> 16);
buf[pos + 3] = (byte)(val >> 24);
pos += 4;
}
public void WriteShort(int val)
{
buf[pos] = (byte) val;
buf[pos + 1] = (byte) (val >> 8);
pos += 2;
}
public void WriteShort(uint val)
{
buf[pos] = (byte) val;
buf[pos + 1] = (byte) (val >> 8);
pos += 2;
}
public void WriteString(string val)
{
byte[] nvalue = Encoding.ASCII.GetBytes(val);
Array.Copy(nvalue, 0, buf, pos, nvalue.Length);
pos += (short)nvalue.Length;
}
public void Skip(int val)
{
pos += (short)val;
}
public byte[] GetPacket()
{
//Array.Copy(TQSERVER, 0, buf, pos, TQSERVER.Length);
//pos += (short)(TQSERVER.Length);
//byte[] Bytes = new byte[pos];
//Array.Copy(buf, Bytes, pos);
Array.Copy(TQSERVER, 0, buf, pos, TQSERVER.Length);
pos += (short)(TQSERVER.Length + 1);
byte[] x = new byte[pos - 1];
Array.Copy(buf, x, pos - 1);
buf = new byte[x.Length];
Array.Copy(x, buf, x.Length);
return buf;
}
}
Thanks are always appreciated.
|
|
|
05/06/2010, 11:17
|
#2
|
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
|
It looks like straight CoEmu.
|
|
|
05/06/2010, 11:44
|
#3
|
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
|
I think this is the wrong one, hold on.
EDITED.
I accidental put the wrong one here. This one does look a bit like CoEmu's packet builder though, however I copied CoEmu's style back than.
|
|
|
05/08/2010, 11:42
|
#4
|
elite*gold: 0
Join Date: Dec 2007
Posts: 9
Received Thanks: 1
|
thanks dude its awesome
|
|
|
|
Similar Threads
|
[Release]Breeder Packet and NPC
02/07/2010 - CO2 PServer Guides & Releases - 7 Replies
Credits to impulse for the packet.
Place this in Packets.cs
public static COPacket Breeder(uint UID)
{
byte Packet = new byte;
COPacket P = new COPacket(Packet);
P.WriteInt16((ushort)(Packet.Length - 8));
P.WriteInt16((ushort)0x271a);
P.WriteInt32(UID);
|
[Release] Sro Rare animation builder
01/20/2010 - SRO Hacks, Bots, Cheats & Exploits - 8 Replies
hey all, i was bored so i made this little tool.
you can build SoX styled animations like the one im using as my avatar image.
you can save it as a GIF-animation or as png sequenz images.
here is a preview:
http://s2k.do.am/rarebuilder/howto/howto.png
http://s2k.do.am/rarebuilder/howto/awewithoutbord er.gif http://s2k.do.am/rarebuilder/howto/awewithborder.g if
download-links:
|
[RE-release]Packet Editing
01/11/2010 - Grand Chase Hacks, Bots, Cheats & Exploits - 0 Replies
http://www.elitepvpers.com/forum/grand-chase-hacks- bots-cheats-exploits/286429-packet-editing-tut-fas t-leveling-easy-pvp-wins.html
you can ignore all the cheat engine stuff, and skip to step 29
Still works 100%, on NAGC
Follow the Dual Client tutorial, to get vmware working, if you don't have 2 computers
no, you don't need an undetected WPE, all the "hacking" programs are on a different computer, so gameguard can't detect anything
|
All times are GMT +2. The time now is 02:38.
|
|