20 lines
626 B
Ruby
20 lines
626 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 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
|