Disabled Sinatra exception, and set the custom 404 response to 'not found.'

This commit is contained in:
antisnatchor
2012-03-14 16:26:29 +01:00
parent c3a611d12e
commit 8fdd127f17
3 changed files with 6 additions and 0 deletions

View File

@@ -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')

View File

@@ -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')

View File

@@ -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')