Play sound in AdminUI upon new hooked browser
This commit is contained in:
@@ -11,4 +11,5 @@ beef:
|
||||
favicon_file_name: "favicon.ico"
|
||||
favicon_dir: "/images"
|
||||
login_fail_delay: 1
|
||||
play_sound_on_new_zombie: false
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
BIN
extensions/demos/html/new_zombie.mp3
Normal file
BIN
extensions/demos/html/new_zombie.mp3
Normal file
Binary file not shown.
Reference in New Issue
Block a user