Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/exploits/php-5.3.9-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 Php_dos < BeEF::Core::Command
7
def self.options
8
[
9
{ 'name' => 'url', 'ui_label' => 'Target URL', 'type' => 'textarea', 'value' => 'http://example.com/index.php', 'width' => '400px', 'height' => '50px' }
10
]
11
end
12
13
def post_execute
14
content = {}
15
content['result'] = @datastore['result'] unless @datastore['result'].nil?
16
content['fail'] = @datastore['fail'] unless @datastore['fail'].nil?
17
save content
18
end
19
end
20
21