Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/core/ruby/security.rb
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
# @note Prevent exec from ever being used
8
def exec(_args)
9
puts 'For security reasons the exec method is not accepted in the Browser Exploitation Framework code base.'
10
exit
11
end
12
13
# @note Prevent system from ever being used
14
def system(_args)
15
puts 'For security reasons the system method is not accepted in the Browser Exploitation Framework code base.'
16
exit
17
end
18
19
# @note Prevent Kernel.system from ever being used
20
def Kernel.system(_args)
21
puts 'For security reasons the Kernel.system method is not accepted in the Browser Exploitation Framework code base.'
22
exit
23
end
24
25