AuthClient Client = Sender.Wrapper as AuthClient;
if (Sender.RecvSize == 52)
{
byte[] Recv = param;
if (BitConverter.ToUInt16(Recv, 2) == 0x41B)
{
byte i = 0;
Client.Username = Encoding.ASCII.GetString(Recv, 4, 16).Trim(new char[] { (char)0x0000 });
Client.Password = "";
while (i < 16)
{
Client.Password += Recv[i + 16].ToString("X2");
i = (byte)(i + 1);
}
Alright, so based on that, it's trying to take the password and convert it to hexadecimal format I believe. The question is, does anyone know how to make a PHP script that will register the passwords into a format that X2 can read or can anyone tell me how to make this just read the password that the user entered?
Edit: Upon trying to register an account and then logging in, it failed. =/
Here is the password I registered under: 123456789
Here is what the database read the password from the client as: "00000000C88AF1DF3AA3F4E7A9E65C3C"
And here is what is registered in the database: 0x313233343536373839
Quote:
Originally Posted by I don't have a username
Why do you want it to be in hex anyways? You should hash it instead.
I don't want it to be in hex, the problem is, I haven't learned how to encrypt/decrypt with code yet so I don't know how to change it to that. =[
Just a simple question but what is it that you're trying to achieve? A register page that is capable of encrypting passwords compatible with CO?
Basically, but encrypting passwords that the source I have can read. ._.
My two options are to either find a PHP script that will register the passwords right, or remove the current password reading system, and just have it read the password from the client as a string, straight on.
Basically, but encrypting passwords that the source I have can read. ._.
My two options are to either find a PHP script that will register the passwords right, or remove the current password reading system, and just have it read the password from the client as a string, straight on.
Which source are you using? A lot of the newer released source store the password as plain text.
Since Arco's 5017 is based of Hybrid's base, this should work:
ctrl + f for public static void AuthReceive(HybridWinsockClient Sender, byte[] param)
//edit delete this part:
Code:
while (i < 16)
{
Client.Password += Recv[i + 16].ToString("X2");
i = (byte)(i + 1);
}
Thank you Kiyono! It reads the password perfectly, but now my only problem is it keeps disconnecting the client because it says that it lost the connection to the server. =/ But thank you for helping me get one thing solved!
If you decrypt to plain text you should really hash it to md6 and then compare that to an md6 hash in the database which the website would use, far more secure than plain text in the database.
If you decrypt to plain text you should really hash it to md6 and then compare that to an md6 hash in the database which the website would use, far more secure than plain text in the database.
Thanks for the advice, and I might actually do that, but first I need to be able to login. =/
Passwords does not match 02/08/2009 - Dekaron Private Server - 6 Replies Thats what it says everytime I try to login on my server.
I use a clean account database, so I cant use a already-existing account and just edit it :S
Any fix for this?
PK Passwords 09/30/2007 - Kal Online - 131 Replies This will be a collection of privat server pk passwords
Standart:
JKSYEHAB#9052
Kalmax Files:
KALMAXAX#6969
Eather Server
H3J2J89PCYXWG
to got pk-passwords 04/30/2007 - Kal Online - 12 Replies Hab hier noch nix der artiges gefunden :) versucht es mal muesste klappen ;)
I got nice tool finding PK password
This only work AFTER you unpack the engine