2015-01-16 03:18:03 +00:00
|
|
|
# -*- coding: binary -*-
|
|
|
|
|
2015-01-16 05:21:54 +00:00
|
|
|
require 'rex/java/serialization'
|
|
|
|
|
2015-01-16 03:18:03 +00:00
|
|
|
module Msf
|
2015-02-10 17:55:14 +00:00
|
|
|
module Java
|
|
|
|
module Jmx
|
|
|
|
require 'msf/java/jmx/util'
|
|
|
|
require 'msf/java/jmx/discovery'
|
|
|
|
require 'msf/java/jmx/handshake'
|
|
|
|
require 'msf/java/jmx/mbean'
|
|
|
|
|
|
|
|
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
|
2015-01-20 23:29:48 +00:00
|
|
|
|
|
|
|
end
|
2015-01-16 05:15:30 +00:00
|
|
|
end
|
2015-01-16 03:18:03 +00:00
|
|
|
end
|