diff --git a/lib/server/requesterhandler.rb b/lib/server/requesterhandler.rb index b448d28f1..a6630a783 100644 --- a/lib/server/requesterhandler.rb +++ b/lib/server/requesterhandler.rb @@ -33,7 +33,7 @@ module BeEF # validates that a hooked browser with the beef_hook token exists in the db zombie_db = Z.first(:session => beef_hook) || nil - raise WEBrick::HTTPStatus::BadRequest, "Invalide beef hook id: the hooked browser cannot be found in the database" if zombie_db.nil? + raise WEBrick::HTTPStatus::BadRequest, "Invalid beef hook id: the hooked browser cannot be found in the database" if zombie_db.nil? # validates that we have such a http request saved in the db http_db = H.first(:id => request_id.to_i, :zombie_id => zombie_db.id) || nil