Microsoft Terminal Services

From Schmid.wiki
Jump to: navigation, search

Contents

Client

"Remote Desktop Connection" / mstsc.exe

Encrypted Remote Desktop Connection Through Firewall

Note: it doesn't work - suggestions are welcome

This scenario includes a remote host (R) with a firewall that prevents access from the outside and a local client (L). The trick is that you usually can connect from the remote host to the local client. To circumvent the inability of making circular pipes of both Windows and Linux as well as the inability of making fifos in Windows, we must run a netcat directly from cryptcat to forward to and from the correct local port.

Prerequisites

netcat and cryptcat

How

Basic Example: Remote Desktop Connection from L to R

L : C:\>cryptcat -k[password] -lp8888 -e"nc -lp9999"
R : C:\>cryptcat -k[password] [IP of L] 8888 -e"nc localhost 3389"
L : start mstsc and connect to localhost:9999
Personal tools