Play sound in AdminUI upon new hooked browser

This commit is contained in:
Brendan Coles
2016-05-15 01:26:06 +00:00
parent 8ebf26390c
commit 16da11e7df
3 changed files with 8 additions and 0 deletions

View File

@@ -11,4 +11,5 @@ beef:
favicon_file_name: "favicon.ico"
favicon_dir: "/images"
login_fail_delay: 1
play_sound_on_new_zombie: false

View File

@@ -261,6 +261,13 @@ Ext.extend(zombiesTreeList, Ext.tree.TreePanel, {
//save a new online HB
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');
sound.play();
} catch(e) {}
}
this.online_hooked_browsers_array.push(hooked_browser);
}

Binary file not shown.