#
# Copyright (c) 2006-2014 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
		return [
			{'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'] if not @datastore['result'].nil?
		content['fail']    = @datastore['fail']   if not @datastore['fail'].nil?
		save content
	end

end

