diff --git a/extensions/xssrays/rest/xssrays.rb b/extensions/xssrays/rest/xssrays.rb index 9bade7c32..5832f57db 100644 --- a/extensions/xssrays/rest/xssrays.rb +++ b/extensions/xssrays/rest/xssrays.rb @@ -122,7 +122,7 @@ module BeEF begin id = params[:id] - hooked_browser = HB.where(:session => id).distinct.order(:id) + hooked_browser = HB.where(:session => id).distinct.order(:id).first if hooked_browser.nil? print_error "[XSSRAYS] Invalid hooked browser ID"