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)