metasploit-framework/lib/msf/http/jboss.rb

34 lines
1.1 KiB
Ruby
Raw Normal View History

# -*- coding: binary -*-
# This module provides a way of interacting with JBoss installations
module Msf
module HTTP
module JBoss
require 'msf/http/jboss/base'
2014-08-01 19:28:26 +00:00
require 'msf/http/jboss/bean_shell'
require 'msf/http/jboss/bean_shell_scripts'
require 'msf/http/jboss/deployment_file_repository'
require 'msf/http/jboss/deployment_file_repository_scripts'
include Msf::Exploit::Remote::HttpClient
include Msf::HTTP::JBoss::Base
2014-08-01 19:28:26 +00:00
include Msf::HTTP::JBoss::BeanShell
include Msf::HTTP::JBoss::BeanShellScripts
include Msf::HTTP::JBoss::DeploymentFileRepository
include Msf::HTTP::JBoss::DeploymentFileRepositoryScripts
def initialize(info = {})
super
2014-08-01 19:28:26 +00:00
register_options(
[
2014-08-01 19:28:26 +00:00
OptString.new('TARGETURI', [true, 'The URI path of the JMX console', '/jmx-console']),
OptEnum.new('VERB', [true, 'HTTP Method to use (for CVE-2010-0738)', 'POST', ['GET', 'POST', 'HEAD']]),
OptString.new('PACKAGE', [false, 'The package containing the BSHDeployer service'])
], self.class)
end
2014-08-01 19:28:26 +00:00
end
end
end