Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/extensions/admin_ui/media/javascript/ui/panel/Logout.js
1155 views
1
//
2
// Copyright (c) 2006-2025 Wade Alcorn - [email protected]
3
// Browser Exploitation Framework (BeEF) - https://beefproject.com
4
// See the file 'doc/COPYING' for copying permission
5
//
6
7
DoLogout = function() {
8
9
var button = Ext.get('do-logout-menu');
10
11
after_logout = function() {
12
// will redirect the UA to the login
13
window.location.href = '<%= @base_path %>/panel'
14
}
15
16
button.on('click', function(){
17
Ext.Ajax.request({
18
url: '<%= @base_path %>/authentication/logout',
19
method: 'POST',
20
params: 'nonce=' + Ext.get("nonce").dom.value,
21
success: after_logout,
22
failure: after_logout
23
});
24
25
})
26
};
27