This script exploits the CVE-2026-24061 vulnerability in Telnet servers using a malformed USER environment variable.
Run the script with a target host:
python telnet_rce.py <host> [-p <port>]host: Target IP address or hostname (required)-p, --port: Target port (default: 23)
python telnet_rce.py 192.168.1.100
python telnet_rce.py example.com -p 23