Skip to content

πŸ“Ž Proof of concept to copy files over RDP connections

License

Notifications You must be signed in to change notification settings

piaudonn/clipin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Ž Proof of concept to copy files over RDP connections

This is a proof of concept to demonstrate that as long as you have your clipboard enabled over RDP, you can do things, even if some of the features have been disabled. This is only to demonstrate the limits of such protections.

Some RDP clients/host are blocking the ability to copy/paste files over the RDP connection. In some cases, they have not disabled the clipboard entirely but only restricted what can be used through it (see [MS-RDPECLIP] I guess).

The clipin function is doing the following on the target server (where the file is):

  1. Takes a path in input
  2. Zips it (works with a file or a folder)
  3. Turns in into a base64 string
  4. Puts that string instead of the file into the clipboard (along with the PowerShell code to convert it back)

Then on the client (where you want to copy the file to):

  1. Open a PowerShell console and just paste what you have in your clipboard

Here is a video to demo the usage:

clipin.mp4

About

πŸ“Ž Proof of concept to copy files over RDP connections

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published