Updated the code to be compatible with Rack3

This commit is contained in:
zinduolis
2025-09-09 21:21:24 +10:00
parent d05ff08dbc
commit 5cf691120f
3 changed files with 12 additions and 3 deletions

View File

@@ -149,7 +149,7 @@ module BeEF
# mount the media folder where we store static files (javascript, css, images, audio) for the admin ui
media_dir = "#{File.dirname(__FILE__)}/../media/"
beef_server.mount("#{bp}/media", Rack::File.new(media_dir))
beef_server.mount("#{bp}/media", Rack::Files.new(media_dir))
# If we're not imitating a web server, mount the favicon to /favicon.ico
# NOTE: this appears to be broken