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

30 lines
908 B
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_scripts'
require 'msf/http/jboss/bean_shell'
include Msf::Exploit::Remote::HttpClient
include Msf::HTTP::JBoss::Base
2014-08-01 19:28:26 +00:00
include Msf::HTTP::JBoss::BeanShellScripts
include Msf::HTTP::JBoss::BeanShell
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