sirjonasxx / G-Earth

Cross-platform Habbo packet manipulator
MIT License
88 stars 47 forks source link

Add cloudflare cookies support for Nitro WebSocket connections #142

Closed UnfamiliarLegacy closed 1 year ago

UnfamiliarLegacy commented 1 year ago

This PR adds support for hotels with heavy cloudflare protection (the checking your browser page). It works by grabbing the Cookie header from the renderer-config.json file with the normal HTTP proxy and saving the cookies for whenever the WebSocket connection is started.

It also adds more headers that would normally be sent to the origin WebSocket connection, in an attempt to seem more legit.