Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/core/settings.rb
1146 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
module BeEF
7
module Settings
8
# Checks if an extension exists in the framework.
9
# @param [String] beef_extension extension class
10
# @return [Boolean] if the extension exists
11
# @deprecated Use #{BeEF::Extension.is_present()} instead of this method.
12
# This method bypasses the configuration system.
13
def self.extension_exists?(beef_extension)
14
BeEF::Extension.const_defined?(beef_extension)
15
end
16
17
# Checks to see if the console extensions has been loaded
18
# @return [Boolean] if the console extension has been loaded
19
# @deprecated Use #{BeEF::Extension.is_loaded()} instead of this method.
20
# This method bypasses the configuration system.
21
def self.console?
22
extension_exists?('Console')
23
end
24
end
25
end
26
27