#1# Copyright (c) 2006-2025 Wade Alcorn - [email protected]2# Browser Exploitation Framework (BeEF) - https://beefproject.com3# See the file 'doc/COPYING' for copying permission4#5module BeEF6module Settings7# Checks if an extension exists in the framework.8# @param [String] beef_extension extension class9# @return [Boolean] if the extension exists10# @deprecated Use #{BeEF::Extension.is_present()} instead of this method.11# This method bypasses the configuration system.12def self.extension_exists?(beef_extension)13BeEF::Extension.const_defined?(beef_extension)14end1516# Checks to see if the console extensions has been loaded17# @return [Boolean] if the console extension has been loaded18# @deprecated Use #{BeEF::Extension.is_loaded()} instead of this method.19# This method bypasses the configuration system.20def self.console?21extension_exists?('Console')22end23end24end252627