Remote console copy/paste utility. It allows a user to paste text-based content from clipboard into a remote console. Many remote console applications does not support standard OS copy/paste.
It supports web-based and client based remote console applications such as VMware, ILO, IDRAC, IPMI, etc. and allows the user to paste from the normal clipboard into such windows. Remote console applications does not normally support the normal copy/paste functions. The utility overcomes this by simulating normal keystrokes.
Use-cases:
- Paste complex passwords from a password vault into to login on console.
- Transfer code/scripts into a console window where there is no IP network attached.
- Start the utility and click ok.
- Copy any text with the normal Windows copy functions.
- Switch to the remote console and make sure it has the focus. Normally a mouse click within the window.
- Hit and release CTRL+ALT+v to paste the content of clipboard into the console.
- A progress bar will be visible and indicate the paste function progress.
Notice!! Do not press anything on the keyboard or move the focus from the remote console while the progress bar is visible
Download a pre-compiled .exe version from: https://github.com/hacke78/Paster-plus-plus/releases
The program can be built on Windows using Visual Studio or cross-compiled on Linux. I prefer Ubuntu 20.04 inside Windows 10 (WSL) and this is currently the only fully supported setup.
The build system is hard-coded to use static linking of DLLs to make the executable easily portable.
Install required build tools
apt install cmake git mingw-w64
Clone the source code
git clone https://github.com/hacke78/Paster-plus-plus
Create a build directory
cd Paster-plus-plus
mkdir build
cd build
Create a Makefile and build
cmake ..
make
You will now have a single .exe file in the build directory (Paster-plus-plus.exe)
- The utility is hard coded to use english keyboard layout as most remote console applications assume a fixed language layout setting. Use local english keyboard layout as a workaround.
- There is a chance that keystrokes are missed or changed while pasting. This is primarily due to how the remote console applications are implemented and that the utility is using a low-level interface to simulate keystrokes. Use a checksum calculator such as md5sum to validate the content if this is critical.
Pull requests are very welcome. For major changes, please open an issue first to discuss what you would like to change.