Grab/Inject Clipboard Content
Clipboardme is a pentester tool that can read and write content to the clipboard by just opening a link, using async clipboard API.
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:
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 shortcurt 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.
navigator.clipboard.writeText('Malicious command to be copied');
Paste: Reading Text from the Clipboard
Text can be read (requires permission) from the clipboard by calling readText(). Example:
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.
navigator.clipboard.readText().then(clipText => document.write(clipText));
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.
Chrome 66, Opera 53, Chrome for Android, Opera for Android
Ngrok Authtoken (for TCP Tunneling): Sign up at: https://ngrok.com/signup
Your authtoken is available on your dashboard: https://dashboard.ngrok.com
Install your auhtoken: ./ngrok authtoken <YOUR_AUTHTOKEN>
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
git clone https://github.com/thelinuxchoice/clipboardme
Read the license before using any part from this code :)