How to send packets to World Serwer

05/31/2019 09:03 Rajmund1337#1
Hello i have problem
i dont know how to decode packets when bot connecting to world serwer

What i know:
After recive somethink like that:
Code:
NsTeST testowyuser 1072 127.0.0.1:4500:7:1.1.S1-Game 127.0.0.1:4501:4:1.2.S1-Game 127.0.0.1:4502:2:1.3.S1-Game
I must send data to world serwer (127.0.0.1:4500)
i know i must send
Code:
1072
and
Code:
testowyuser
password
(this i found in packet logger)
I try use decryptLoginPacket and decryptGamePacket but without effects

Could someone explain me how to do that?
05/31/2019 09:57 erixor#2
Actually you have to send the packetId or whatever this is before each packet when you're sending packets to the worldserver.

this PacketId increases by 1 everytime a packet is sent and is randomly generated by the client (between 20 000 & 90 000 I think)

So for example, you have to send :

20000 {SessionId} (in your case it seems it is 1072)
20001 testowyuser
20002 password

Hope it helps ;)

as an example, the following code is horrible, I did that a long time ago for testing purposes, but it works :

[Only registered and activated users can see links. Click Here To Register...]
05/31/2019 22:19 Pyrokar000#3
I have just read my code and there is a list what you have to do:

1. Connect to world server (79.110.84.75:4004 in PL).
2. Send NoS0575 packet.
e.g.
It means:
NoS0575 %random% Login SHA512password GUID 00+%random%+char(11)+versionofNostaleClientX.exe 0 MD5NostaleClientX+MD5NostaleClient

?Helpful? thread: [Only registered and activated users can see links. Click Here To Register...]

If you use Cryless~'s cryptography you have to use Crypto::encryptLoginPacket. Link: [Only registered and activated users can see links. Click Here To Register...]

3. Decode response. Use Crypto::decryptLoginPacket.
NsTeST testowyuser 1072 127.0.0.1:4500:7:1.1.S1-Game 127.0.0.1:4501:4:1.2.S1-Game 127.0.0.1:4502:2:1.3.S1-Game

1072 is session ID. After that you have avaliable channels.

4. Choose channel and connect.
5. Send sesson ID. Use Crypto::encryptGamePacket.
In this case: encryptGamePacket("1072",1072,true);

6. Wait 1 second.
7. Send login: encryptGamePacket("testowyuser",1072,false);
8. Send password: encryptGamePacket("password",1072,false);
9. Decode response using Crypto::decryptGamePacket
It's list of characters:
10. Client sends this packets, but probably it's not necessary to send all of them:
Of course use encryptGamePacket.
11. Send pulse packet every minute (see in packet logger).

I hope it will be helpful.
06/01/2019 08:47 Rajmund1337#4
Quote:
Originally Posted by Pyrokar000 View Post
I have just read my code and there is a list what you have to do:

1. Connect to world server (79.110.84.75:4004 in PL).
2. Send NoS0575 packet.
e.g.
It means:
NoS0575 %random% Login SHA512password GUID 00+%random%+char(11)+versionofNostaleClientX.exe 0 MD5NostaleClientX+MD5NostaleClient

?Helpful? thread: [Only registered and activated users can see links. Click Here To Register...]

If you use Cryless~'s cryptography you have to use Crypto::encryptLoginPacket. Link: [Only registered and activated users can see links. Click Here To Register...]

3. Decode response. Use Crypto::decryptLoginPacket.
NsTeST testowyuser 1072 127.0.0.1:4500:7:1.1.S1-Game 127.0.0.1:4501:4:1.2.S1-Game 127.0.0.1:4502:2:1.3.S1-Game

1072 is session ID. After that you have avaliable channels.

4. Choose channel and connect.
5. Send sesson ID. Use Crypto::encryptGamePacket.
In this case: encryptGamePacket("1072",1072,true);

6. Wait 1 second.
7. Send login: encryptGamePacket("testowyuser",1072,false);
8. Send password: encryptGamePacket("password",1072,false);
9. Decode response using Crypto::decryptGamePacket
It's list of characters:
10. Client sends this packets, but probably it's not necessary to send all of them:
Of course use encryptGamePacket.
11. Send pulse packet every minute (see in packet logger).

I hope it will be helpful.
Thanks i before stuck on stage 5 (i send id, login and password as plaintext 😆)
06/01/2019 16:16 erixor#5
Quote:
Originally Posted by Rajmund1337 View Post
Thanks i before stuck on stage 5 (i send id, login and password as plaintext ��)
If you have any trouble, you can contact me on Discord, I'll gladly help ! :D

Elendan#1111