Move new_zombie.mp3 to AdminUI extension - #1240
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
@@ -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) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user