Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/core/main/client/status.js
4598 views
1
//
2
// Copyright (c) 2006-2026 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
* Status code helpers for module command results.
9
* Modules use these when sending results back to the BeEF server.
10
* @namespace beef.status
11
*/
12
13
beef.status = {
14
/**
15
* Success status code
16
* @memberof beef.status
17
* @method success
18
* @return {number} 1
19
*/
20
success: function () {
21
return 1;
22
},
23
/**
24
* Unknown status code
25
* @memberof beef.status
26
* @method unknown
27
* @return {number} 0
28
*/
29
unknown: function () {
30
return 0;
31
},
32
/**
33
* Error status code
34
* @memberof beef.status
35
* @method error
36
* @return {number} -1
37
*/
38
error: function () {
39
return -1;
40
}
41
};
42
beef.regCmp("beef.status");
43
44