Disabled Sinatra exception, and set the custom 404 response to 'not found.'
This commit is contained in:
@@ -20,6 +20,8 @@ module BeEF
|
||||
class HookedBrowsers < Sinatra::Base
|
||||
|
||||
config = BeEF::Core::Configuration.instance
|
||||
configure do set :show_exceptions, false end
|
||||
not_found do 'Not Found.' end
|
||||
|
||||
before do
|
||||
error 401 unless params[:token] == config.get('beef.api_token')
|
||||
|
||||
@@ -20,6 +20,8 @@ module BeEF
|
||||
class Logs < Sinatra::Base
|
||||
|
||||
config = BeEF::Core::Configuration.instance
|
||||
configure do set :show_exceptions, false end
|
||||
not_found do 'Not Found.' end
|
||||
|
||||
before do
|
||||
error 401 unless params[:token] == config.get('beef.api_token')
|
||||
|
||||
@@ -20,6 +20,8 @@ module BeEF
|
||||
class Modules < Sinatra::Base
|
||||
|
||||
config = BeEF::Core::Configuration.instance
|
||||
configure do set :show_exceptions, false end
|
||||
not_found do 'Not Found.' end
|
||||
|
||||
before do
|
||||
error 401 unless params[:token] == config.get('beef.api_token')
|
||||
|
||||
Reference in New Issue
Block a user