[HELP] - De/Encoding packets

04/09/2016 15:31 lika85#1
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);
04/09/2016 16:16 YouAreTarded#2
1- Its Encryption, not Encoding < no! not the same thing!! >

[Only registered and activated users can see links. Click Here To Register...]

2- You have here all functions you need in C++
( nobody will convert it for you, stop be lazy and start doing things by yourself )

[Only registered and activated users can see links. Click Here To Register...]
04/09/2016 16:55 lika85#3
I from that make dll and insert it into my program but, bigger problem is, if i send packet and then try to read, it always lag..

Quote:
Originally Posted by YouAreTarded View Post
1- Its Encryption, not Encoding < no! not the same thing!! >

[Only registered and activated users can see links. Click Here To Register...]

2- You have here all functions you need in C++
( nobody will convert it for you, stop be lazy and start doing things by yourself )

[Only registered and activated users can see links. Click Here To Register...]
Ok :D i was sending raw packet, now only find some method to encrypt password, i never saw c++ and i dont know how to translate it into c# i am not so lazy i only dont know it.
04/09/2016 17:49 YouAreTarded#4
Quote:
Originally Posted by lika85 View Post
I from that make dll and insert it into my program but, bigger problem is, if i send packet and then try to read, it always lag..



Ok :D i was sending raw packet, now only find some method to encrypt password, i never saw c++ and i dont know how to translate it into c# i am not so lazy i only dont know it.
[Only registered and activated users can see links. Click Here To Register...] - This website exists to be used! :rtfm:
04/09/2016 17:52 Bombasticx3#5
Quote:
Originally Posted by YouAreTarded View Post
[Only registered and activated users can see links. Click Here To Register...] - This website exists to be used! :rtfm:
Cryless is that u?
04/09/2016 18:53 MasterDomino#6
Quote:
Originally Posted by Bombasticx3 View Post
Cryless is that u?
pfff... stahp just look at this nick XD
04/09/2016 21:21 lika85#7
Please guys, have anyone encryption and decryption functions in C#? I am trying to translate it from php and c++ and its still not working..

04/09/2016 22:09 SlayZ85#8
Edit..