rescue StandardError

This commit is contained in:
Brendan Coles
2014-10-28 08:18:26 +00:00
parent 6f1f8cf65c
commit 53dd7ee5fb
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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