headless RDP with SharpRDP
Last updated
Last updated
The RDP application (mstsc.exe) builds upon the terminal services library mstscax.dll. this library exposes interfaces to both scripts and compiled code through COM objects.
SharpRDP is a C# application that uses uses the non-scriptable interfaces exposed by mstscax.dll
to perform authentication in the same way as mstsc.exe
. Once authentication is performed, SharpRDP allows us to execute code through SendKeys
. In this manner, no GUI access is required and setting up a reverse tunnel is unnecessary.
Executing a PowerShell download cradle on remote system: