adding the detect local settings command and fixing the functions to build beefjs for components
git-svn-id: https://beef.googlecode.com/svn/trunk@543 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
@@ -214,13 +214,13 @@ module BeEF
|
||||
# use 'beef.encode.base64'
|
||||
#
|
||||
def use(component)
|
||||
component_path = component
|
||||
return if @beefjs_components.include? component
|
||||
|
||||
component_path = '/'+component
|
||||
component_path.gsub!(/beef./, '')
|
||||
component_path.gsub!(/\./, '/')
|
||||
component_path.replace "#{$root_dir}/modules/beefjs/#{component_path}.js"
|
||||
|
||||
return if beefjs_components.include? component
|
||||
|
||||
raise "Invalid beefjs component for command module #{@path}" if not File.exists?(component_path)
|
||||
|
||||
@beefjs_components[component] = component_path
|
||||
|
||||
Reference in New Issue
Block a user