LiveOverflow / minecraft-hacked

Minecraft:Hacked is a video series exploring various technical areas of Minecraft.
209 stars 12 forks source link

Fixed a crash. #16

Open gamingredpandas opened 2 years ago

gamingredpandas commented 2 years ago

If you try to run the current code, you will run into an error with mojang authentication (in packet_login_encryption_request from protocol.py) and the client and proxy return: Auth failed: [<twisted.python.failure.Failure OpenSSL.SSL.Error: [('STORE routines', '', 'unregistered scheme'), ('STORE routines', '', 'unsupported'), ('STORE routines', '', 'unregistered scheme'), ('system library', '', ''), ('STORE routines', '', 'unregistered scheme'), ('STORE routines', '', 'unsupported'), ('STORE routines', '', 'unregistered scheme'), ('system library', '', ''), ('STORE routines', '', 'unregistered scheme'), ('STORE routines', '', 'unsupported'), ('STORE routines', '', 'unregistered scheme'), ('system library', '', ''), ('STORE routines', '', 'unregistered scheme'), ('STORE routines', '', 'unsupported'), ('SSL routines', '', 'certificate verify failed')]>] this is caused by the proxy defaulting to online mode in ServerFactory but the proxy is made to operate in offline mode to edit and read the unencrypted messages.

Edit: I think this might only be on Windows.