mc-router
mc-router copied to clipboard
[wip] Inspect frames for commands
Just testing out how tough it would be to build the server listing commands and stuff
I'm excited to see what you're doing here and was also starting to think that at least sniffing the frames would be more doable than I originally feared. I'll try to look at this later today/tomorrow.
Yeah, I think I just hit the wall of handling encryption, I think we'd need to MITM it.
It looks gross but not undoable: https://wiki.vg/Protocol_Encryption
I suppose we also have the option of retrieving the real private key from the server
Oh yeah, it was the encryption that was the show stopper before when I considered going deeper. I'm guessing that's partly why bungeecord recommends configuring the backend minecraft servers in offline mode; however, that's a total guess.
...speaking of bungeecord, maybe we should look at how they handled that aspect. Maybe it is more MITM by generating its own server key, yet talks to the individual backends via their respective encrypted channel.
So I think first step is getting this working in servers running in offline mode (no encryption it seems).
If you do end up investigating encryption, you may be interested in Velocity, I believe they have native decoding for better performance. https://github.com/VelocityPowered/Velocity/tree/master/native