Posts: 6,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1075 thank(s) in 852 post(s)
ProtoProxy cannot be used for online mode, because the encryption packet contains a hash of the server identification and user's token, neither of which can be obtained by ProtoProxy as it is now.
There is a way this could be done, but it's non-trivial. ProtoProxy would need to register as a separate server with Mojang's servers, the client would then connect to ProtoProxy, and it would register as a player for the underlying server with Mojang. For this to work, you'd need to feed your Mojang account name and password to ProtoProxy, possibly as cmdline arguments; and ProtoProxy would then only work when impersonating you.
I don't think it's worth the effort, since there not much real difference between the online and offline modes. Getting proper 1.8 support would be a much more appreciated effort.
Posts: 219
Threads: 11
Joined: Dec 2013
Thanks: 52
Given 8 thank(s) in 4 post(s)
Okay, when the connection between the server and client is encrypted can this the proxy handle? so the request packet send to client directly?
Posts: 6,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1075 thank(s) in 852 post(s)
The protocol encryption is enforced from the serverside. ProtoProxy doesn't request encryption from the client connecting to it, and if the server requests encryption from ProtoProxy, it terminates the connection, because it cannot provide the encryption data (needs the player's Mojang account details). So no, ProtoProxy doesn't do the encryption.
Posts: 219
Threads: 11
Joined: Dec 2013
Thanks: 52
Given 8 thank(s) in 4 post(s)
Okay, so when i made a encrypted connection with client and server i can't encrypt it? Because i tried it but which keys should i use for Client and Server Decrypter/Encrypter?
Posts: 219
Threads: 11
Joined: Dec 2013
Thanks: 52
Given 8 thank(s) in 4 post(s)
01-10-2015, 10:56 PM
(This post was last modified: 01-10-2015, 10:57 PM by daniel0916.)
Now, when i encrypt connection to server and the to the client is unencrypted i can only make this when i know this account details. From which account details can i generate the things what i need to send to the server? I want to connect about the proxy on a server like hivemc. I will try some things.
The SendEncryptionKeyResponse generates the things but it don't work because it's not right?