End fixing namespaces
parent
6e635211b3
commit
29c68ef1ec
|
@ -3,35 +3,37 @@
|
||||||
require 'rex/java/serialization'
|
require 'rex/java/serialization'
|
||||||
|
|
||||||
module Msf
|
module Msf
|
||||||
module Jmx
|
module Java
|
||||||
require 'msf/java/jmx/util'
|
module Jmx
|
||||||
require 'msf/java/jmx/discovery'
|
require 'msf/java/jmx/util'
|
||||||
require 'msf/java/jmx/handshake'
|
require 'msf/java/jmx/discovery'
|
||||||
require 'msf/java/jmx/mbean'
|
require 'msf/java/jmx/handshake'
|
||||||
|
require 'msf/java/jmx/mbean'
|
||||||
|
|
||||||
include Msf::Java::Jmx::Util
|
include Msf::Java::Jmx::Util
|
||||||
include Msf::Java::Jmx::Discovery
|
include Msf::Java::Jmx::Discovery
|
||||||
include Msf::Java::Jmx::Handshake
|
include Msf::Java::Jmx::Handshake
|
||||||
include Msf::Java::Jmx::Mbean
|
include Msf::Java::Jmx::Mbean
|
||||||
|
|
||||||
def initialize(info = {})
|
def initialize(info = {})
|
||||||
super
|
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
|
||||||
|
|
||||||
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
|
end
|
||||||
|
|
||||||
def jmx_role
|
|
||||||
datastore['JMX_ROLE']
|
|
||||||
end
|
|
||||||
|
|
||||||
def jmx_password
|
|
||||||
datastore['JMX_PASSWORD']
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -8,9 +8,9 @@ require 'msf/core'
|
||||||
class Metasploit3 < Msf::Exploit::Remote
|
class Metasploit3 < Msf::Exploit::Remote
|
||||||
Rank = ExcellentRanking
|
Rank = ExcellentRanking
|
||||||
|
|
||||||
include Msf::Jmx
|
include Msf::Java::Jmx
|
||||||
include Msf::Exploit::Remote::HttpServer
|
include Msf::Exploit::Remote::HttpServer
|
||||||
include Msf::Rmi::Client
|
include Msf::Java::Rmi::Client
|
||||||
|
|
||||||
def initialize(info = {})
|
def initialize(info = {})
|
||||||
super(update_info(info,
|
super(update_info(info,
|
||||||
|
|
|
@ -8,7 +8,7 @@ require 'msf/core'
|
||||||
class Metasploit3 < Msf::Exploit::Remote
|
class Metasploit3 < Msf::Exploit::Remote
|
||||||
Rank = ExcellentRanking
|
Rank = ExcellentRanking
|
||||||
|
|
||||||
include Msf::Rmi::Client
|
include Msf::Java::Rmi::Client
|
||||||
include Msf::Exploit::Remote::HttpServer
|
include Msf::Exploit::Remote::HttpServer
|
||||||
|
|
||||||
def initialize(info = {})
|
def initialize(info = {})
|
||||||
|
|
Loading…
Reference in New Issue