mc-router icon indicating copy to clipboard operation
mc-router copied to clipboard

[wip] Inspect frames for commands

Open fabianvf opened this issue 6 years ago • 8 comments

Just testing out how tough it would be to build the server listing commands and stuff

fabianvf avatar May 06 '19 14:05 fabianvf

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.

itzg avatar May 06 '19 16:05 itzg

Yeah, I think I just hit the wall of handling encryption, I think we'd need to MITM it.

fabianvf avatar May 06 '19 19:05 fabianvf

It looks gross but not undoable: https://wiki.vg/Protocol_Encryption

fabianvf avatar May 06 '19 19:05 fabianvf

I suppose we also have the option of retrieving the real private key from the server

fabianvf avatar May 06 '19 20:05 fabianvf

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.

itzg avatar May 06 '19 23:05 itzg

...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.

itzg avatar May 06 '19 23:05 itzg

So I think first step is getting this working in servers running in offline mode (no encryption it seems).

fabianvf avatar May 07 '19 15:05 fabianvf

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

ryantheleach avatar May 16 '19 22:05 ryantheleach