# # Copyright (c) 2006-2026 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - https://beefproject.com # See the file 'doc/COPYING' for copying permission # class Php_dos < BeEF::Core::Command def self.options [ { 'name' => 'url', 'ui_label' => 'Target URL', 'type' => 'textarea', 'value' => 'http://example.com/index.php', 'width' => '400px', 'height' => '50px' } ] end def post_execute content = {} content['result'] = @datastore['result'] unless @datastore['result'].nil? content['fail'] = @datastore['fail'] unless @datastore['fail'].nil? save content end end