Added more client-side debugging/logging features to better trace errors when a module fails.

This commit is contained in:
antisnatchor
2014-01-03 11:52:00 +00:00
parent 8003f1a47f
commit 2899886543
3 changed files with 7 additions and 5 deletions

View File

@@ -7,7 +7,10 @@
beef:
version: '0.4.4.9-alpha'
# More verbose messages (server-side)
debug: false
# More verbose messages (client-side)
client_debug: false
restrictions:
# subnet of browser ip addresses that can hook to the framework
@@ -100,10 +103,6 @@ beef:
crypto_default_value_length: 80
# Enable client-side debugging
client:
debug: false
# You may override default extension configuration parameters here
extension:
requester:

View File

@@ -81,6 +81,9 @@ beef.updater = {
command();
} catch(e) {
console.error('execute_commands - command failed to execute: ' + e.message);
// prints the command source to be executed, to better trace errors
// beef.client_debug must be enabled in the main config
beef.debug(command.toString());
}
}
this.lock = false;

View File

@@ -46,7 +46,7 @@ module BeEF
'beef_dns_port' => @configuration.get('beef.http.dns_port'),
'beef_hook' => @configuration.get('beef.http.hook_file'),
'beef_proto' => @configuration.get('beef.http.https.enable') == true ? "https" : "http",
'client_debug' => @configuration.get("beef.client.debug")
'client_debug' => @configuration.get("beef.client_debug")
}
end