From e377ed3f83260a4df3d7cccf65339aef073000fc Mon Sep 17 00:00:00 2001 From: jvazquez-r7 Date: Thu, 22 Jan 2015 18:39:12 -0600 Subject: [PATCH] Document the 'null' UnicastRef ObjId on the discovery package --- lib/msf/jmx/discovery.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/msf/jmx/discovery.rb b/lib/msf/jmx/discovery.rb index 3b11ad5483..f155b48d18 100644 --- a/lib/msf/jmx/discovery.rb +++ b/lib/msf/jmx/discovery.rb @@ -9,10 +9,11 @@ module Msf # # @return [Rex::Java::Serialization::Model::Stream] def discovery_stream + obj_id = "\x00" * 22 # Padding since there isn't an UnicastRef ObjId to use still + block_data = Rex::Java::Serialization::Model::BlockData.new( nil, - "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + - "\x00\x00\x00\x02\x44\x15\x4d\xc9\xd4\xe6\x3b\xdf" + "#{obj_id}\x00\x00\x00\x02\x44\x15\x4d\xc9\xd4\xe6\x3b\xdf" ) stream = Rex::Java::Serialization::Model::Stream.new