Error message updated (Fixes issue 487).
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user