rescue StandardError
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user