Use base64 for module inputs instead of gsub

This commit is contained in:
Brendan Coles
2016-03-21 19:41:02 +00:00
parent b6f9daf780
commit 4dde171c4f
4 changed files with 4 additions and 4 deletions

View File

@@ -7,7 +7,7 @@
beef.execute(function() {
try {
var msg = "<%= @msg.gsub(/"/, '\\"') %>";
var msg = decodeURIComponent(beef.encode.base64.decode('<%= Base64.encode64(@msg).delete("\n") %>'));
beef.debug(msg);
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result=called the beef.debug() function. Check the developer console for your debug message.');
} catch(e) {