From 0dc720b4ff27a2e653471912198422d9628cf84b Mon Sep 17 00:00:00 2001 From: Johannes Lauinger Date: Wed, 20 Aug 2025 15:39:55 +0200 Subject: [PATCH] rdp2tcp.py: implement host (-h) and port (-p) CLI options CLI options parsing previously skipped the host and port parameters. This adds support for these parameters. --- tools/rdp2tcp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/rdp2tcp.py b/tools/rdp2tcp.py index 021317c..b7c0174 100755 --- a/tools/rdp2tcp.py +++ b/tools/rdp2tcp.py @@ -131,9 +131,9 @@ def popup_telnet(x, type, dst): i = 1 while argv[i].startswith('-'): if argv[i] == '-h': - pass + host = argv[i+1] elif argv[i] == '-p': - pass + port = int(argv[i+1]) i += 2 cmd = argv[i]