From 01758a12ef25ba157af36c983ed3d6922a9782c6 Mon Sep 17 00:00:00 2001 From: Brendan Coles Date: Sat, 11 Oct 2014 16:47:25 +0000 Subject: [PATCH] Support HTTPS --- extensions/social_engineering/web_cloner/web_cloner.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/social_engineering/web_cloner/web_cloner.rb b/extensions/social_engineering/web_cloner/web_cloner.rb index 2185d682b..0401449cf 100644 --- a/extensions/social_engineering/web_cloner/web_cloner.rb +++ b/extensions/social_engineering/web_cloner/web_cloner.rb @@ -14,7 +14,8 @@ module BeEF @http_server = BeEF::Core::Server.instance @config = BeEF::Core::Configuration.instance @cloned_pages_dir = "#{File.expand_path('../../../../extensions/social_engineering/web_cloner', __FILE__)}/cloned_pages/" - @beef_hook = "http://#{@config.get('beef.http.host')}:#{@config.get('beef.http.port')}#{@config.get('beef.http.hook_file')}" + beef_proto = @config.get("beef.http.https.enable") == true ? "https" : "http" + @beef_hook = "#{beef_proto}://#{@config.get('beef.http.host')}:#{@config.get('beef.http.port')}#{@config.get('beef.http.hook_file')}" end def clone_page(url, mount, use_existing, dns_spoof)