Nostale packet to official server problem

04/12/2016 14:45 SlayZ85#1
Hello,
I am trying to make an C# application that will verify if your nostale login informations are good.
In PHP, I sent the packet "NoS0575 6322112 USERNAME 109177246F927042641467C191156B736755635463B1358334 5 00332B98 0.9.3.3055 0 B5D5C01C083E1F954259316FE2206F9D", and it returned me the list of the channels, so it works in PHP.
But then I tried with C#, and it respond me "fail An error occured .. Try again" but I have the same socket connection as php and good cryptography (I think)

Here is my C# connection :

And my cryptography:
Please help :confused:
04/12/2016 17:51 Bejine#2
You know that there's an encrypted password&md5 of nostalex.dat+nostale.dat, right? Also, there is one char where it's not space, but other char (can be seen below)
PHP Code:
$HASH strtoupper(md5(file_get_contents($path.'NostaleX.dat'true)))
.
strtoupper(md5(file_get_contents($path.'Nostale.dat'true)));

$login_packet "NoS0575 10039722 ".$ID." ".password_enc($PW)." 00564F36";
$login_packet .= chr(11);
$login_packet .= "0.9.3.3055 0 ".strtoupper(md5($HASH.$ID));
$login_packet packet_enc($login_packet); 
04/12/2016 19:17 SlayZ85#3
Thank you for your response, yes I know that I need to encrypt the password and MD5Hash, but I just want to test.
My php code without all the pass encryption and the mdp, it works just with this :
Code:
$packet = "NoS0575 3780918 enydremz8 1315732463917543641465C265146B716D527F5568B23B83325 00366E86 0.9.3.3055 0 B5D5C01C083E1F954259316FE2206F9D";
$message = packet_enc($packet);
And yes I already added the chr(11) in my C# code, but it still doesn't work, you can try yourself.
But thanks for trying to help me, I appreciate it.
04/13/2016 19:00 iArtrix#4
Check in OpenNos your packet