Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/core/main/client/are.js
1154 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
/**
8
* A series of functions that handle statuses, returns a number based on the function called.
9
* @namespace beef.are
10
*/
11
12
beef.are = {
13
/**
14
* A function for handling a success status
15
* @memberof beef.are
16
* @method status_success
17
* @return {number} 1
18
*/
19
status_success: function(){
20
return 1;
21
},
22
/**
23
* A function for handling an unknown status
24
* @memberof beef.are
25
* @method status_unknown
26
* @return {number} 0
27
*/
28
status_unknown: function(){
29
return 0;
30
},
31
/**
32
* A function for handling an error status
33
* @memberof beef.are
34
* @method status_error
35
* @return {number} -1
36
*/
37
status_error: function(){
38
return -1;
39
}
40
};
41
beef.regCmp("beef.are");
42
43