diff --git a/config.yaml b/config.yaml index 7e1a7c3d1..04d0226f1 100644 --- a/config.yaml +++ b/config.yaml @@ -27,7 +27,9 @@ beef: # if running behind a nat set the public ip address here #public: "" #public_port: "" # port setting is experimental - dns: "localhost" + # DNS + dns_host: "localhost" + dns_port: 53 panel_path: "/ui/panel" hook_file: "/hook.js" hook_session_name: "BEEFHOOK" @@ -56,7 +58,7 @@ beef: https: enable: false # In production environments, be sure to use a valid certificate signed for the value - # used in beef.http.dns (the domain name of the server where you run BeEF) + # used in beef.http.dns_host (the domain name of the server where you run BeEF) key: "beef_key.pem" cert: "beef_cert.pem" diff --git a/core/main/server.rb b/core/main/server.rb index fc9389042..f9a22a245 100644 --- a/core/main/server.rb +++ b/core/main/server.rb @@ -41,7 +41,8 @@ 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' => @configuration.get('beef.http.dns'), + '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")