From 675c6a9edb615b32da628eb0aec39c60dcb817cc Mon Sep 17 00:00:00 2001 From: Bucky Wilson Date: Mon, 25 Sep 2017 12:00:32 +1000 Subject: [PATCH] Create temporary password in-lieu of using default --- beef | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/beef b/beef index f6612c219..b1fff4c21 100755 --- a/beef +++ b/beef @@ -119,9 +119,12 @@ 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 +# @note Warn and replace 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!" + better_phrase = BeEF::Core::Crypto::secure_token(16) + config.set("beef.credentials.passwd", better_phrase) + print_info "Password for this instance: #{better_phrase}" end # @note create ~/.beef/