Skip to content
Scripts that allow you to copy/past text into another Windows process to bypass Citrix copy/paste limitation
C# PowerShell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Scripts to copy/paste a file into Citrix XenApp or Citrix XenDesktop when copy/paste option is not allowed !


  1. TRDucky

To-Rubber-Ducky USB's script encode the file of your choice in base64 and generate payload ready to be compiled with the Rubber Ducky Encoder.The file "payload" will be compiled as inject.bin. Copy past this file into your Rubber Ducky USB. Save the result on the target machine as .html an open it with Internet Explorer. Save the file with the extension of the original file. You have transfered your file !

  1. KeyBS

If you don't have USB port available; use KeyBS (powershell or C#). Use the KeyBS C# script preferably since SendInput in C# is more reliable than SendKeys in powershell.

  • Powershell: ~30 b/secondes
  • C#: ~100 b/secondes


  • char % ^ can be replaced by 5 6 if mulitple keyboards are defined
  • Powershell version is very slow, use it as last resort
  • Don't forget to add WindowsInput library via Nuget for the C# project

capture d'écran


MIT License

You can’t perform that action at this time.