From 880f63a9ff94e06b1b6da7970bc8c8ac659cdba3 Mon Sep 17 00:00:00 2001 From: Brendan Coles Date: Mon, 10 Apr 2017 18:51:31 +0000 Subject: [PATCH] Warn on startup if default credentials in use --- beef | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/beef b/beef index 40c65b1e0..ab5388efc 100755 --- a/beef +++ b/beef @@ -118,6 +118,11 @@ BeEF::Core::Console::Banners.print_loaded_modules BeEF::Core::Console::Banners.print_network_interfaces_count BeEF::Core::Console::Banners.print_network_interfaces_routes +# @note Warn on default credentials +if config.get("beef.credentials.user").eql?('beef') && config.get("beef.credentials.passwd").eql?('beef') + print_warning "Warning: Default username and password in use!" +end + #@note Prints the API key needed to use the RESTful API print_info "RESTful API key: #{BeEF::Core::Crypto::api_token}"