Files
metasploit-gs/lib/msf/java/jmx.rb
T
2015-03-18 15:37:07 -05:00

45 lines
1.1 KiB
Ruby

# -*- coding: binary -*-
require 'rex/java/serialization'
require 'rex/proto/rmi'
module Msf
module Java
module Jmx
require 'msf/java/rmi/util'
require 'msf/java/rmi/builder'
require 'msf/java/jmx/util'
require 'msf/java/jmx/discovery'
require 'msf/java/jmx/handshake'
require 'msf/java/jmx/mbean'
include Msf::Java::Rmi::Util
include Msf::Java::Rmi::Builder
include Msf::Java::Jmx::Util
include Msf::Java::Jmx::Discovery
include Msf::Java::Jmx::Handshake
include Msf::Java::Jmx::Mbean
def initialize(info = {})
super
register_options(
[
Msf::OptString.new('JMX_ROLE', [false, 'The role to interact with an authenticated JMX endpoint']),
Msf::OptString.new('JMX_PASSWORD', [false, 'The password to interact with an authenticated JMX endpoint'])
], HTTP::Wordpress
)
end
def jmx_role
datastore['JMX_ROLE']
end
def jmx_password
datastore['JMX_PASSWORD']
end
end
end
end