diff --git a/beef b/beef index a8c9cf29a..44d770464 100755 --- a/beef +++ b/beef @@ -30,9 +30,6 @@ case config.get("beef.database.default") print_error 'No default database selected. Please add one in config.yaml' end - -BeEF::Extension::Console::Banners.print_network_interfaces_count - if BeEF::Extension::Console.resetdb? print_info 'Resetting the database for BeEF.' DataMapper.auto_migrate! @@ -53,8 +50,10 @@ http_hook_server.prepare # prints information back to the user before running the server + BeEF::Extension::Console::Banners.print_loaded_extensions BeEF::Extension::Console::Banners.print_loaded_modules +BeEF::Extension::Console::Banners.print_network_interfaces_count BeEF::Extension::Console::Banners.print_network_interfaces_routes # We dynamically get the list of all browser hook handler using the API and register them diff --git a/extensions/console/banners.rb b/extensions/console/banners.rb index 53d1b41b0..1f4c4929a 100644 --- a/extensions/console/banners.rb +++ b/extensions/console/banners.rb @@ -12,8 +12,7 @@ module Banners def print_welcome_msg config = BeEF::Core::Configuration.instance version = config.get('beef.version') - print_info " -=[ BeEF v#{version} ]=-" - print_info "Ensure you're running the latest framework version. Run 'svn update' to update." + print_info "Version: #{version} - Run 'svn update' to update to the latest version." end # @@ -50,12 +49,12 @@ module Banners # [14:06:48][+] running on network interface: 192.168.255.1 # [14:06:48] | Hook URL: http://192.168.255.1:3000/hook.js # [14:06:48] | UI URL: http://192.168.255.1:3000/ui/panel - # [14:06:48] |_ Demo URL: http://192.168.255.1:3000/demos/basic.html # [14:06:48][+] running on network interface: 127.0.0.1 # [14:06:48] | Hook URL: http://127.0.0.1:3000/hook.js # [14:06:48] | UI URL: http://127.0.0.1:3000/ui/panel - # [14:06:48] |_ Demo URL: http://127.0.0.1:3000/demos/basic.html # + + def print_network_interfaces_routes configuration = BeEF::Core::Configuration.instance @@ -63,7 +62,6 @@ module Banners print_success "running on network interface: #{host}" data = "Hook URL: http://#{host}:#{configuration.get("beef.http.port")}#{configuration.get("beef.http.hook_file")}\n" data += "UI URL: http://#{host}:#{configuration.get("beef.http.port")}#{configuration.get("beef.http.panel_path")}\n" - data += "Demo URL: http://#{host}:#{configuration.get("beef.http.port")}#{configuration.get("beef.http.demo_path")}" print_more data end