A PowerShell-based clipboard monitoring script that logs clipboard changes locally and sends the clipboard data to a specified server endpoint for further processing.
- Monitors the clipboard for changes.
- Logs clipboard content locally with timestamps.
- Sends clipboard data to a server endpoint using HTTP POST requests.
- Tracks and prevents duplicate logs for unchanged clipboard content.
- Provides robust error handling and logging.
- Windows operating system.
- PowerShell (version 5.0 or higher).
- Server endpoint capable of receiving HTTP POST requests.
- Clone the repository or download the script file
ClipboardMonitor.ps1
. - Ensure PowerShell is installed on your system.
- Modify the configuration variables in the script:
- Replace
<YourServerIP>
in$webhook_url
with the IP or domain of your server. - Set a valid file path for the
$log_file
variable to store clipboard logs.
- Replace
- Open PowerShell as an administrator.
- Run the script:
PowerShell -ExecutionPolicy Bypass -File .\ClipboardMonitor.ps1