Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/core/main/client/timeout.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
* Sometimes there are timing issues and looks like beef_init
9
* is not called at all (always in cross-origin situations,
10
* for example calling the hook with jquery getScript,
11
* or sometimes with event handler injections).
12
*
13
* To fix this, we call again beef_init after 1 second.
14
* Cheers to John Wilander that discussed this bug with me at OWASP AppSec Research Greece
15
* antisnatchor
16
* @namespace beef.timeout
17
*/
18
19
/**
20
* @memberof beef.timeout
21
* @function setTimeout
22
*/
23
setTimeout(beef_init, 1000);
24
25