Tuesday 12 August 2014

Powershell - Telnet Client without the telnet client ;)

Hi All,

I was showing a proof of concept to my boss on how to escape Citrix on my test lab.  Part of my setup had Citrix and the domain controller in a seperate subnet with port 3389 allowed.  I tried to use telnet but this failed.  So out comes trusty powershell to the rescue.


A simple one liner with two arguments.
new.object System.Net.Sockets.TCPClient -ArgumentList IPaddress,PortNumber

new.object System.Net.Sockets.TCPClient -ArgumentList 10.10.10.10,3389

Below is a screen shot of  a successful connection then an unsuccessful connection.  Enjoy!


No comments:

Post a Comment