From 454280f7de5e33ed7c53ca2da337255cf1ce7403 Mon Sep 17 00:00:00 2001 From: antisnatchor Date: Wed, 4 Apr 2012 16:05:52 +0100 Subject: [PATCH] Adjusted errors and default returns for the web server imitation. --- core/main/router/router.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/main/router/router.rb b/core/main/router/router.rb index 439709210..e38a36b9a 100644 --- a/core/main/router/router.rb +++ b/core/main/router/router.rb @@ -74,7 +74,8 @@ module BeEF "and search for topics titled Web Site Setup, Common Administrative Tasks, and About Custom Error Messages." + "" + "" - + else + "Not Found." end else "Not Found." @@ -94,9 +95,9 @@ module BeEF headers "Server" => "Microsoft-IIS/7.0", "X-Powered-By" => "ASP.NET", "Content-Type" => "text/html" + else + print_error "You have and error in beef.http.web_server_imitation.type! Supported values are: apache, iis." end - else - print_error "You have and error in beef.http.web_server_imitation.type! Supported values are: apache, iis." end end end