New Authentication.cs

05/26/2012 01:05 Adventure-MMO#1
New Authentication.cs


using System;
using System.IO;
using System.Text;

namespace Conquer_Online_Server.Network.AuthPackets
{
public class Authentication : Interfaces.IPacket
{
public string Username;
public string Password;
public string Server;
public void Deserialize(byte[] buffer)
{
if (buffer.Length == 240)// 5605
{
MemoryStream MS = new MemoryStream(buffer);
BinaryReader BR = new BinaryReader(MS);

ushort length = BR.ReadUInt16();
if (length == 240)// 5605
{
ushort type = BR.ReadUInt16();
if (type == 1124)// 5605
{
Username = Encoding.ASCII.GetString(BR.ReadBytes(16));
Username = Username.Replace("\0", "");
BR.ReadBytes(112);
Password = Encoding.ASCII.GetString(BR.ReadBytes(16));
BR.ReadBytes(112);
Server = Encoding.ASCII.GetString(BR.ReadBytes(16));
Server = Server.Replace("\0", "");
}
}
BR.Close();
MS.Close();
}
}

public byte[] ToArray()
{
throw new NotImplementedException();
}
public void Send(Client.GameState client)
{
throw new NotImplementedException();
}
}
}



Program.cs


static void AuthServer_AnnounceReceive(byte[] arg1, Interfaces.ISocketWrapper arg2)
{
if (arg1.Length == 276)


change -> if (arg1.Length == 276) to -> if (arg1.Length == 240)


now just need to find the new Conquer Password Cryptpographer
05/26/2012 02:45 pro4never#2
wait... doesn't this just handle some packet id/size changes?

How is this useful in any way? People still need the dhkeyexchange (fairly public now but w/e) and the password cryptography or a hook to overwrite the new crypt.

If anyone can figure out (or even implement) the other required pieces of the puzzle, I'd sure hope they'd be able to change a few conditionals around <_<

Not a flame... just not sure what the point of this thread is <_<
05/26/2012 09:33 Spirited#3
Quote:
Originally Posted by pro4never View Post
wait... doesn't this just handle some packet id/size changes?

How is this useful in any way? People still need the dhkeyexchange (fairly public now but w/e) and the password cryptography or a hook to overwrite the new crypt.

If anyone can figure out (or even implement) the other required pieces of the puzzle, I'd sure hope they'd be able to change a few conditionals around <_<

Not a flame... just not sure what the point of this thread is <_<
There is no point. He's been spamming me about this on every social medium begging me to update his source to the current patch. This thread has no meaning. It's him asking for help.
05/26/2012 11:13 Sp!!ke#4
useless in my opinion !