Move new_zombie.mp3 to AdminUI extension - #1240

This commit is contained in:
Brendan Coles
2019-02-10 10:32:12 +00:00
parent cb2e8b6681
commit e090b22656
3 changed files with 2 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ module API
beef_server.mount("#{bp}/#{mod_name}", BeEF::Extension::AdminUI::Handlers::UI.new(mod_name))
end
# mount the folder were we store static files (javascript, css, images) for the admin ui
# mount the folder were 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))

View File

@@ -498,7 +498,7 @@ Ext.extend(zombiesTreeList, Ext.tree.TreePanel, {
if(online && Ext.pluck(this.online_hooked_browsers_array, 'session').indexOf(hooked_browser.session)==-1) {
if (<%= BeEF::Core::Configuration.instance.get("beef.extension.admin_ui.play_sound_on_new_zombie") %>) {
try {
var sound = new Audio('/demos/new_zombie.mp3');
var sound = new Audio('<%= @base_path %>/media/audio/new_zombie.mp3');
sound.play();
} catch(e) {}
}