Add jQuery BlockUI plugin to hook
This commit is contained in:
11
modules/misc/unblockui/command.js
Normal file
11
modules/misc/unblockui/command.js
Normal file
@@ -0,0 +1,11 @@
|
||||
//
|
||||
// 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() {
|
||||
$j.unblockUI();
|
||||
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result=command sent');
|
||||
});
|
||||
|
||||
15
modules/misc/unblockui/config.yaml
Normal file
15
modules/misc/unblockui/config.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
#
|
||||
# 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:
|
||||
module:
|
||||
unblockui:
|
||||
enable: true
|
||||
category: "Misc"
|
||||
name: "UnBlockUI"
|
||||
description: "This module removes all jQuery BlockUI dialogs."
|
||||
authors: ["bcoles"]
|
||||
target:
|
||||
user_notify: ["ALL"]
|
||||
14
modules/misc/unblockui/module.rb
Normal file
14
modules/misc/unblockui/module.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
#
|
||||
# Copyright (c) 2006-2015 Wade Alcorn - wade@bindshell.net
|
||||
# Browser Exploitation Framework (BeEF) - http://beefproject.com
|
||||
# See the file 'doc/COPYING' for copying permission
|
||||
#
|
||||
class Unblockui < BeEF::Core::Command
|
||||
|
||||
def post_execute
|
||||
content = {}
|
||||
content['result'] = @datastore['result']
|
||||
save content
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user