Quote:
Originally Posted by lostsolder05
somehow i doubt u even understood 2 words of what he said, lol
|
its not becaus i don't post much niether giving thanks that i won't understand what said
in packets.cs whole under you'll find this
public byte[] AuthResponse(string ip, byte[] key1, byte[] key2)
{
ushort PacketType = 0x41f;
byte[] Packet = new byte[32];
fixed (byte* p = Packet)
{
*((ushort*)p) = (ushort)Packet.Length;
*((ushort*)(p + 2)) = (ushort)PacketType;
*(p + 4) = key2[3];
*(p + 5) = key2[2];
*(p + 6) = key2[1];
*(p + 7) = key2[0];
*(p + 8) = key1[3];
*(p + 9) = key1[2];
*(p + 10) = key1[1];
*(p + 11) = key1[0];
for (int i = 0; i < ip.Length; i++)
{
*(p + 12 + i) = Convert.ToByte(ip[i]);
}
*(p + 28) = 0xb8;
*(p + 29) = 0x16;
}
return Packet;
thats what she/he ment