This project is a collection of Python scripts that allow you to safely send and receive binary files (such as executables and images) via the clipboard in Windows environments, without using network or USB. All file transfers use base64 encoding.
- Automatic Mode: Continuously monitors the clipboard to automatically send and receive files.
- Manual Mode: Allows users to manually select files to copy to or paste from the clipboard.
- Base64 Encoding: Ensures safe transfer of clipboard data.
- Windows Support: All scripts and commands are designed for Windows environments.
automatic/sender/clip_b64_send_win.py: Script to encode files as base64 and copy them to the clipboard sequentiallyreceiver/clip_b64_recv_poll_win.py: Script to periodically check the clipboard and restore files from base64 datarun.cmdin each folder: Command file for example execution
manual/sender/copy_b64_files.py: Copy multiple files to the clipboard as base64recv/paste_b64_files.py: Save base64 data from the clipboard as files
- Go to the
automatic/sender/orautomatic/receiver/folder. - Run the corresponding script (
clip_b64_send_win.pyorclip_b64_recv_poll_win.py). - You can use the
run.cmdfile for quick execution.
- Go to the
manual/sender/ormanual/recv/folder. - Run the scripts as follows:
python copy_b64_files.py <file_path>- You can copy multiple files at once.
python paste_b64_files.py <target_directory>- You can paste multiple files at once.
- The sender script encodes the specified file as base64 and copies it to the clipboard in chunks.
- The receiver script periodically checks the clipboard, detects base64 chunks, and restores the file.
- Each chunk includes metadata such as order, total chunk count, CRC32, filename, and file size to ensure integrity and correct sequence.
- Python 3 is required.
- This project is licensed under the MIT License. See the LICENSE file for details.