From 4746829153a6861e075af603ef9bdea0c711b780 Mon Sep 17 00:00:00 2001 From: Brendan Coles Date: Sun, 17 May 2015 22:09:58 +0000 Subject: [PATCH] Show UI URLs only when Admin UI is enabled --- core/main/console/banners.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/main/console/banners.rb b/core/main/console/banners.rb index 8517477b3..52f6228d9 100644 --- a/core/main/console/banners.rb +++ b/core/main/console/banners.rb @@ -86,7 +86,9 @@ module Banners print_success "running on network interface: #{host}" beef_host = configuration.get("beef.http.public_port") || configuration.get("beef.http.port") data = "Hook URL: #{prototxt}://#{host}:#{configuration.get("beef.http.port")}#{configuration.get("beef.http.hook_file")}\n" - data += "UI URL: #{prototxt}://#{host}:#{configuration.get("beef.http.port")}#{configuration.get("beef.http.web_ui_basepath")}/panel\n" + if configuration.get("beef.extension.admin_ui.enable") + data += "UI URL: #{prototxt}://#{host}:#{configuration.get("beef.http.port")}#{configuration.get("beef.http.web_ui_basepath")}/panel\n" + end print_more data end