diff --git a/modules/debug/test_return_ascii_chars/command.js b/modules/debug/test_return_ascii_chars/command.js index 083d74503..d744d5852 100644 --- a/modules/debug/test_return_ascii_chars/command.js +++ b/modules/debug/test_return_ascii_chars/command.js @@ -13,13 +13,12 @@ // See the License for the specific language governing permissions and // limitations under the License. // -beef.execute(function() { - - var str = ''; - for (var i=32; i<=127;i++) str += String.fromCharCode(i); - - console.log(str); - beef.net.send("<%= @command_url %>", <%= @command_id %>, str); - -}); - +beef.execute(function() { + + var str = ''; + for (var i=32; i<=127;i++) str += String.fromCharCode(i); + + beef.net.send("<%= @command_url %>", <%= @command_id %>, str); + +}); + diff --git a/modules/debug/test_return_long_string/command.js b/modules/debug/test_return_long_string/command.js index 2bfe19ccf..a14343538 100644 --- a/modules/debug/test_return_long_string/command.js +++ b/modules/debug/test_return_long_string/command.js @@ -13,18 +13,16 @@ // See the License for the specific language governing permissions and // limitations under the License. // -beef.execute(function() { - - var repeat_value = "<%= @repeat_string %>"; - var iterations = <%= @repeat %>; - var str = ""; - - for (var i = 0; i < iterations; i++) { - str += repeat_value; - } - - console.log(str); - beef.net.send("<%= @command_url %>", <%= @command_id %>, str); - -}); - +beef.execute(function() { + + var repeat_value = "<%= @repeat_string %>"; + var iterations = <%= @repeat %>; + var str = ""; + + for (var i = 0; i < iterations; i++) { + str += repeat_value; + } + beef.net.send("<%= @command_url %>", <%= @command_id %>, str); + +}); +