From 53dd7ee5fb3cbba5e0e15acb3efc86965867b35f Mon Sep 17 00:00:00 2001 From: Brendan Coles Date: Tue, 28 Oct 2014 08:18:26 +0000 Subject: [PATCH] rescue StandardError --- core/main/rest/handlers/hookedbrowsers.rb | 4 ++-- modules/social_engineering/ui_abuse_ie/module.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/main/rest/handlers/hookedbrowsers.rb b/core/main/rest/handlers/hookedbrowsers.rb index 1c92ecfa6..12f763918 100644 --- a/core/main/rest/handlers/hookedbrowsers.rb +++ b/core/main/rest/handlers/hookedbrowsers.rb @@ -62,7 +62,7 @@ module BeEF begin requester = BeEF::Core::Models::Http.all(:hooked_browser_id => hb.id) requester.destroy - rescue Exception => e + rescue => e #the requester module may not be enabled end @@ -72,7 +72,7 @@ module BeEF xssraysdetails = BeEF::Core::Models::Xssraysdetail.all(:hooked_browser_id => hb.id) xssraysdetails.destroy - rescue Exception => e + rescue => e #the xssraysscan module may not be enabled end diff --git a/modules/social_engineering/ui_abuse_ie/module.rb b/modules/social_engineering/ui_abuse_ie/module.rb index 8acce9332..7a40c6e5f 100644 --- a/modules/social_engineering/ui_abuse_ie/module.rb +++ b/modules/social_engineering/ui_abuse_ie/module.rb @@ -28,7 +28,7 @@ class Ui_abuse_ie < BeEF::Core::Command popunder = File.read("#{$root_dir}/modules/social_engineering/ui_abuse_ie/popunder.html") body = popunder.gsub("__URL_PLACEHOLDER__", @exe_url) BeEF::Core::NetworkStack::Handlers::AssetHandler.instance.bind_raw('200', {'Content-Type'=>'text/html'}, body, "/underpop.html", -1) - rescue Exception => e + rescue => e print_error "Something went wrong executing Ui_abuse_ie::pre_send, exception: #{e.message}" end end