Clipboardme : Grab & Inject Clipboard Content By Link

Clipboardme is a tool used to grab and inject clipboard content by link. Browsers are implementing a new JavaScript API for asynchronous clipboard access to integrate copy and paste into web applications.

It is a replacement for the synchronous execCommand-based copy & paste. Async Clipboard requests doesn’t block the page while waiting the process, it’s a improvement over sync requests as well as simplifying events and aligning them with the Drag & Drop API.

It is a pentester tool that can read and write content to the clipboard by just opening a link, using async clipboard API.

Also Read – Exegol : A Kali Light Base With Few Useful Additional Tools

How does Async Clipboard API work?

Copy: Writing Text to the Clipboard

Text can be silently and automatically copied to the clipboard by calling writeText(), without requesting permission. Example:

<script>
navigator.clipboard.writeText(‘Malicious command to be copied’);
</script>

Simple, huh? How dangerous it can be if the user is convinced to run the clipboard content? A windows reverse shell can be made if a user type the following shortcut sequence after visiting the malicious website generated by clipboardme: windows+x, p, ctrl + v. No need to hit enter, just persuade the target to run that “shortcut” for an attacker take control of a windows system. This scenario can occur when the target is supposed to execute clipboard contents.

Paste: Reading Text from the Clipboard

Text can be read (requires permission) from the clipboard by calling readText(). Example:

<script>
navigator.clipboard.readText().then(clipText => document.write(clipText));
</script>

Users routinely copy sensitive information like passwords and personal details to the clipboard, which could then be read by any page. Clipboardme tool can create a HTTPS malicious page to grab that content.

To help prevent abuse, clipboard access is only allowed when a page is the active tab and over secured domains (https). Pages in active tabs can write to the clipboard without requesting permission, but reading from the clipboard always requires permission.

Browser Compatibility

Chrome 66, Opera 53, Chrome for Android, Opera for Android

Requirements

Legal Disclaimer

Usage of Clipboardme for attacking targets without prior mutual consent is illegal. It’s the end user’s responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program

Usage

git clone https://github.com/thelinuxchoice/clipboardme
cd clipboardme
bash clipboardme.sh

R K

Recent Posts

Shadow-rs : Harnessing Rust’s Power For Kernel-Level Security Research

shadow-rs is a Windows kernel rootkit written in Rust, demonstrating advanced techniques for kernel manipulation…

2 weeks ago

ExecutePeFromPngViaLNK – Advanced Execution Of Embedded PE Files via PNG And LNK

Extract and execute a PE embedded within a PNG file using an LNK file. The…

3 weeks ago

Red Team Certification – A Comprehensive Guide To Advancing In Cybersecurity Operations

Embark on the journey of becoming a certified Red Team professional with our definitive guide.…

3 weeks ago

CVE-2024-5836 / CVE-2024-6778 : Chromium Sandbox Escape via Extension Exploits

This repository contains proof of concept exploits for CVE-2024-5836 and CVE-2024-6778, which are vulnerabilities within…

3 weeks ago

Rust BOFs – Unlocking New Potentials In Cobalt Strike

This took me like 4 days (+2 days for an update), but I got it…

3 weeks ago

MaLDAPtive – Pioneering LDAP SearchFilter Parsing And Security Framework

MaLDAPtive is a framework for LDAP SearchFilter parsing, obfuscation, deobfuscation and detection. Its foundation is…

3 weeks ago