End fixing namespaces

bug/bundler_fix
jvazquez-r7 2015-02-10 11:55:14 -06:00
parent 6e635211b3
commit 29c68ef1ec
No known key found for this signature in database
GPG Key ID: 38D99152B9352D83
3 changed files with 31 additions and 29 deletions

View File

@ -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

View File

@ -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,

View File

@ -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 = {})