Add ARE return status

This commit is contained in:
Brendan Coles
2016-02-07 01:01:02 +00:00
parent 83e1f596de
commit eb9e0a0a68
5 changed files with 10 additions and 10 deletions

View File

@@ -13,7 +13,7 @@ beef.execute(function() {
var re = /^[0-9a-f]{32}$/i;
var valid_hash = re.exec(hash);
if (!valid_hash) {
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'fail=invalid MD5 hash');
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'fail=invalid MD5 hash', beef.are.status_error());
return;
}
@@ -37,7 +37,7 @@ beef.execute(function() {
}
}
if (!result) {
beef.net.send('<%= @command_url %>', <%= @command_id %>, "hash="+hash+"&fail=no results");
beef.net.send('<%= @command_url %>', <%= @command_id %>, "hash="+hash+"&fail=no results", beef.are.status_error());
} else {
beef.net.send('<%= @command_url %>', <%= @command_id %>, "hash="+hash+"&result="+result);
}