Add ARE status

This commit is contained in:
Brendan Coles
2016-04-10 16:03:13 +00:00
parent 254032594f
commit 31b3346fcb
11 changed files with 18 additions and 18 deletions

View File

@@ -28,11 +28,11 @@ beef.execute(function() {
output = document.pingSweep.getAliveHosts();
clearTimeout(int_timeout);
clearTimeout(ext_timeout);
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'ps=Alive hosts:<br>'+output.replace(/\n/g,"<br>"));
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'ps=Alive hosts:<br>'+output.replace(/\n/g,"<br>"), beef.are.status_success());
beef.dom.detachApplet('pingSweep');
return;
}else{
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'ps=No hosts to check');
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'ps=No hosts to check', beef.are.status_error());
return;
}
} catch (e) {