ClP (Clipboard - Paste) is a very simple but useful script that transfers files via the shell. This script is primarily created for red-teamers that quickly and easily wants to copy a file over to a victim host (and your only access to it is an open shell).
The intended usage of ClP is to run it "headless-ly" via a launcher (dmenu, rofi, kRunner, etc.). This will open a dmenu window (You could mod the script to use your favourite launcher) to pick a file in your home directory (can also me changed) to transfer.
The script works by base64 encoding the files contents, copying them to the clipboard, and then pasting it in your current active window (along with a command that writes it to a file on the remote host).
- xclip
- dmenu
- xdotool
sudo pacman -S dmenu xclip xdotool
sudo apt install dmenu xclip xdotool