Hi, i am trying clientless bot for nostale in C#, and i have problem with encoding and decoding packets, can anyone give me some functions? (de/encode login packet, de/encode game packet, encode password ). I was searching these functions and i found only some old funcs and funcs in c++ wich is like if u hit keyboard. Login in PHP is working for me, but if i send another packet, no response come to me. This is my code:
Code:
public TcpClient client = new TcpClient();
public string tempString = "";
public NetworkStream stream;
const string HASH = "529D12EF5699E29548A9914C7B2AB6DFA735FA8053A6B0EDFF75E607FF3EBBED";
private string id="somethink";
private string password="somethink";
private void buttonLogin_Click(object sender, EventArgs e)
{
try
{
client.Connect("79.110.84.75", 4006);
stream = client.GetStream();
print("Connected to server!");
}
catch (SocketException err)
{
print("Cannot connect to server! Error: "+err.ToString());
}
id = labelNickname.Text;
password = labelPassword.Text;
password = PASSWORD_ENCODING_FUNC(password); - This isnt working i know
string loginMessage = "NoS0575 597064 " + id + " " + password + " 008B8CF9";
loginMessage +=((char)11).ToString();
loginMessage +="0.9.3.3055 0 "+md5(hash+id).ToUpper();
loginMessage= LOGIN_PACKET_ENCODING_FUNC(loginMessage);
client.Write(loginMessage,0,loginMessage.Length);