From 48c71236398e836da14633e64fe1927c4d42947f Mon Sep 17 00:00:00 2001 From: Wade Date: Mon, 21 Nov 2011 16:14:33 +1000 Subject: [PATCH] Error message updated (Fixes issue 487). --- core/api.rb | 2 +- core/main/server.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/api.rb b/core/api.rb index 6f53edb8f..c9537626b 100644 --- a/core/api.rb +++ b/core/api.rb @@ -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 diff --git a/core/main/server.rb b/core/main/server.rb index 0ef37817d..8cb9c924a 100644 --- a/core/main/server.rb +++ b/core/main/server.rb @@ -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)