[Important]Needed Update For DHKey For ProxyParadise .

09/13/2012 01:15 Sir~Samuel#1
Hello Guys,

Am Here Today To Ask Any Body To Upgrade DH-Key and Add MD5 To Proxy Paradise Pro4Never's Proxy To work on The Latest Co Client That's Will Be Very Useful , I Have Tried Many Times But I Couldn't When I go For Log In It Disconnects From Game Server ... So Please Do It As My First Request Here In Forum ...

I Attached The Source Code In Topic ..
All Rights Go To Pro4Never I didn't Do Any Thing .

Thanks For Your Time ...

Samuel .
09/13/2012 01:23 JohnHeatz#2
#Moved to the right section
09/13/2012 01:54 Sir~Samuel#3
Quote:
Originally Posted by JohnHeatz View Post
#Moved to the right section
Thanks Mr.John ..
09/13/2012 02:48 Purple<3#4
Look around for a proxy, close to your version.
09/13/2012 09:30 Sir~Samuel#5
Quote:
Originally Posted by Purple<3 View Post
Look around for a proxy, close to your version.
i don't think that there any proxy here work on patch 5620+ , if there please give some help with link .
09/13/2012 11:40 go for it#6
i think if not pretty sure that there is no higher patch proxy based bot out there but PP
and trust me , getting the new dh key from epvp expert members is harder than getting a boner on a piece of wood ^^
09/13/2012 13:49 Sir~Samuel#7
Quote:
Originally Posted by go for it View Post
i think if not pretty sure that there is no higher patch proxy based bot out there but PP
and trust me , getting the new dh key from epvp expert members is harder than getting a boner on a piece of wood ^^
I have the DHKey and MD5 but i cant add it to the bot ?

I need help with this ...
09/13/2012 15:12 OELABOELA#8
Quote:
Originally Posted by go for it View Post
i think if not pretty sure that there is no higher patch proxy based bot out there but PP
and trust me , getting the new dh key from epvp expert members is harder than getting a boner on a piece of wood ^^
So damn true.
09/13/2012 21:53 Sir~Samuel#9
DHKey Server Side Packet :

Code:
using System;
using System.IO;
using System.Text;
using System.Security.Cryptography;

namespace Conquer_Online_Server.Network.GamePackets
{
    public static class DHKeyExchange
    {
        public class ServerKeyExchange
        {
            OpenSSL.DH _keyExchange;
            byte[] _serverIv;
            byte[] _clientIv;

            public byte[] CreateServerKeyPacket()
            {
                _clientIv = new byte[8];
                _serverIv = new byte[8];
                string P = "E7A69EBDF105F2A6BBDEAD7E798F76A209AD73FB466431E2E7352ED262F8C558F10BEFEA977DE9E21DCEE9B04D245F300ECCBBA03E72630556D011023F9E857F";
                string G = "05";
                _keyExchange = new OpenSSL.DH(OpenSSL.BigNumber.FromHexString(P), OpenSSL.BigNumber.FromHexString(G));
                _keyExchange.GenerateKeys();
                return GeneratePacket(_serverIv, _clientIv, P, G, _keyExchange.PublicKey.ToHexString());
            }

            public Cryptography.GameCryptography HandleClientKeyPacket(string PublicKey, Cryptography.GameCryptography cryptographer)
            {
                byte[] key = _keyExchange.ComputeKey(OpenSSL.BigNumber.FromHexString(PublicKey));

                string md = KeyMD5(MD5.Create().ComputeHash(key));
                key = Encoding.Default.GetBytes(md);
                cryptographer.SetKey(key);
                cryptographer.SetIvs(_clientIv, _serverIv);
                return cryptographer;
            }


            public static string KeyMD5(byte[] object_1)
            {
                char[] chArray = new char[] { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };
                int num = 0;
                int num2 = 0;
                int length = object_1.Length;
                char[] chArray2 = new char[length * 2];
                while (num < length)
                {
                    byte num4 = (byte)object_1[num++];
                    chArray2[num2++] = chArray[num4 / 0x10];
                    chArray2[num2++] = chArray[num4 % 0x10];
                }
                return new string(chArray2, 0, chArray2.Length);
            }
            public byte[] GeneratePacket(byte[] ServerIV1, byte[] ServerIV2, string P, string G, string ServerPublicKey)
            {
                int PAD_LEN = 11;
                int _junk_len = 12;
                string tqs = "TQServer";
                MemoryStream ms = new MemoryStream();
                byte[] pad = new byte[PAD_LEN];
                ServerBase.Kernel.Random.NextBytes(pad);
                byte[] junk = new byte[_junk_len];
                ServerBase.Kernel.Random.NextBytes(junk);
                int size = 47 + P.Length + G.Length + ServerPublicKey.Length + 12 + 8 + 8;
                BinaryWriter bw = new BinaryWriter(ms);
                bw.Write(pad);
                bw.Write(size - PAD_LEN);
                bw.Write((UInt32)_junk_len);
                bw.Write(junk);
                bw.Write((UInt32)ServerIV2.Length);
                bw.Write(ServerIV2);
                bw.Write((UInt32)ServerIV1.Length);
                bw.Write(ServerIV1);
                bw.Write((UInt32)P.ToCharArray().Length);
                foreach (char fP in P.ToCharArray())
                {
                    bw.BaseStream.WriteByte((byte)fP);
                }
                bw.Write((UInt32)G.ToCharArray().Length);
                foreach (char fG in G.ToCharArray())
                {
                    bw.BaseStream.WriteByte((byte)fG);
                }
                bw.Write((UInt32)ServerPublicKey.ToCharArray().Length);
                foreach (char SPK in ServerPublicKey.ToCharArray())
                {
                    bw.BaseStream.WriteByte((byte)SPK);
                }
                foreach (char tq in tqs.ToCharArray())
                {
                    bw.BaseStream.WriteByte((byte)tq);
                }
                byte[] Packet = new byte[ms.Length];
                Packet = ms.ToArray();
                ms.Close();
                return Packet;
            }
        }
    }
}
So If Any One Can Do It ?
Give Us Help With Doing It .

Thanks For Your Time ...
Samuel .
09/14/2012 23:23 Sir~Samuel#10
No One Can Make It ???
09/15/2012 01:19 Mero.El.Omda#11
you missed somethings in this DHKey
09/15/2012 14:18 Sir~Samuel#12
Quote:
Originally Posted by Mero.El.Omda View Post
you missed somethings in this DHKey
So If You Know It , Complete It ....

Or You Can Give Us Some Help and Add It To The Proxy ... :handsdown: