Error message updated (Fixes issue 487).

This commit is contained in:
Wade
2011-11-21 16:14:33 +10:00
parent 3f94c72777
commit 48c7123639
2 changed files with 4 additions and 4 deletions

View File

@@ -171,7 +171,7 @@ module API
end
end
else
print_error "API Path not defined for Class: "+c.to_s+" Method: "+m.to_s
print_error "API Path not defined for Class: #{c.to_s} method:#{method.to_s}"
end
return data
end

View File

@@ -24,7 +24,7 @@ module BeEF
# @note Grabs the version of beef the framework is deployed on
VERSION = BeEF::Core::Configuration.instance.get('beef.version')
attr_reader :root_dir, :url, :configuration, :command_urls, :mounts, :semaphore
attr_reader :root_dir, :url, :configuration, :command_urls, :mounts
def initialize
@configuration = BeEF::Core::Configuration.instance
@@ -34,7 +34,7 @@ module BeEF
@command_urls = {}
@mounts = {}
@rack_app
@semaphore = Mutex.new
# @semaphore = Mutex.new
end
def to_h
@@ -77,7 +77,7 @@ module BeEF
@rack_app.remap(@mounts)
end
#Prepare the BeEF http server.
# Prepares the BeEF http server.
def prepare
# Create http handler for the javascript hook file
self.mount("#{@configuration.get("beef.http.hook_file")}", BeEF::Core::Handlers::HookedBrowsers.new)