Skip to content

Conversation

@aschumann-virtualcable
Copy link
Contributor

This pull request updates the way RDP connection scripts for macOS handle passwords and command-line arguments, improving security and compatibility with Thincast and xfreerdp clients. The changes remove the practice of writing passwords into RDP files and instead pass them securely as command-line arguments. This approach reduces the risk of exposing sensitive information and aligns with best practices.

Security and password handling improvements:

  • Stopped writing the RDP password in plain text to the .rdp file in both direct.py and tunnel.py; instead, the password is now appended as a command-line argument (/p:<password>) when launching Thincast, if provided. [1] [2]

  • For xfreerdp/udsrdp, added logic to append the /p:<password> argument to the command if a password is present, ensuring consistent password handling across clients.

Signature updates:

  • Updated the .signature files for both direct.py and tunnel.py to reflect the code changes. [1] [2]

Updates the logic for launching Thincast to pass the password
as a command-line argument instead of writing it unencrypted
to the RDP file. Improves security by avoiding plaintext
password storage and ensures compatibility with Thincast's
CLI options. Adjusts debug logging accordingly.
@dkmstr dkmstr merged commit 7bc12cc into v4.0 Jan 22, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants