Files
beef/core/ruby/security.rb
jcrew99 486a9bb329 Update copyright 2023 (#2675)
* updated copyright

* reverted gemfile lock changes
2022-12-31 15:36:07 +10:00

24 lines
756 B
Ruby

#
# Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net
# Browser Exploitation Framework (BeEF) - http://beefproject.com
# See the file 'doc/COPYING' for copying permission
#
# @note Prevent exec from ever being used
def exec(_args)
puts 'For security reasons the exec method is not accepted in the Browser Exploitation Framework code base.'
exit
end
# @note Prevent system from ever being used
def system(_args)
puts 'For security reasons the system method is not accepted in the Browser Exploitation Framework code base.'
exit
end
# @note Prevent Kernel.system from ever being used
def Kernel.system(_args)
puts 'For security reasons the Kernel.system method is not accepted in the Browser Exploitation Framework code base.'
exit
end