diff --git a/core/main/console/banners.rb b/core/main/console/banners.rb index e14edcca5..62028f598 100644 --- a/core/main/console/banners.rb +++ b/core/main/console/banners.rb @@ -84,10 +84,10 @@ module Banners self.interfaces.map do |host| # display the important URLs on each interface from the interfaces array 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" + port = configuration.get("beef.http.public_port") || configuration.get("beef.http.port") + data = "Hook URL: #{prototxt}://#{host}:#{port}#{configuration.get("beef.http.hook_file")}\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" + data += "UI URL: #{prototxt}://#{host}:#{port}#{configuration.get("beef.http.web_ui_basepath")}/panel\n" end print_more data diff --git a/core/main/server.rb b/core/main/server.rb index d97adf414..4df610df8 100644 --- a/core/main/server.rb +++ b/core/main/server.rb @@ -42,8 +42,6 @@ module BeEF 'beef_port' => @configuration.get('beef.http.port'), 'beef_public' => @configuration.get('beef.http.public'), 'beef_public_port' => @configuration.get('beef.http.public_port'), - 'beef_dns_host' => @configuration.get('beef.http.dns_host'), - '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")