How does Pupy's rdesktop module enable screen control on Windows?
Pupy's rdesktop module uses a three-part architecture: a Client that captures screen content and executes received mouse/keyboard messages, a Transfer that acts as a bridge using RSA+AES encryption (via websocket), and a Server that displays the screen in a browser and captures input. This allows remote viewing and control, as explained in the Pupy Exploitation Analysis - Features on Windows Platform article.
Pupyrdesktopscreen controlclient-transfer-serverwebsocketRSA+AES