File tree Expand file tree Collapse file tree 5 files changed +11
-10
lines changed
rex/java/serialization/model Expand file tree Collapse file tree 5 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ module Handshake
9
9
# Builds a Rex::Java::Serialization::Model::Stream to make
10
10
# a JMX handshake with an endpoint
11
11
#
12
- # @param obj_id [String] The endpoint UnicastRef ObjId
12
+ # @param id [String] The endpoint UnicastRef ObjId
13
13
# @return [Rex::Java::Serialization::Model::Stream]
14
14
def handshake_stream ( obj_id )
15
15
block_data = Rex ::Java ::Serialization ::Model ::BlockData . new ( nil , "#{ obj_id } \xff \xff \xff \xff \xf0 \xe0 \x74 \xea \xad \x0c \xae \xa8 " )
Original file line number Diff line number Diff line change @@ -109,8 +109,8 @@ def recv_return(opts = {})
109
109
110
110
# Helper method to read fragmented data from a ```Rex::Socket::Tcp```
111
111
#
112
- # @param nsock [Rex::Socket::Tcp,#get_once ]
113
- # @return [String]
112
+ # @param opts [Hash ]
113
+ # @option opts [Rex::Socket::Tcp] :sock
114
114
def safe_get_once ( nsock = sock )
115
115
data = ''
116
116
begin
Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ class Field < Element
11
11
include Rex ::Java ::Serialization ::Model ::Contents
12
12
13
13
# @!attribute type
14
- # @return [String] The type of the field.
14
+ # @return [String] The type of the field.
15
15
attr_accessor :type
16
16
# @!attribute name
17
- # @return [Rex::Java::Serialization::Model::Utf] The name of the field.
17
+ # @return [Rex::Java::Serialization::Model::Utf] The name of the field.
18
18
attr_accessor :name
19
19
# @!attribute field_type
20
- # @return [Rex::Java::Serialization::Model::Utf] The type of the field on object types.
20
+ # @return [Rex::Java::Serialization::Model::Utf] The type of the field on object types.
21
21
attr_accessor :field_type
22
22
23
23
# @param stream [Rex::Java::Serialization::Model::Stream] the stream where it belongs to
@@ -32,7 +32,7 @@ def initialize(stream = nil)
32
32
#
33
33
# @param io [IO] the io to read from
34
34
# @return [self] if deserialization succeeds
35
- # @raise [RuntimeError] if deserialization doesn't succeed
35
+ # @faise [RuntimeError] if deserialization doesn't succeed
36
36
def decode ( io )
37
37
code = io . read ( 1 )
38
38
Original file line number Diff line number Diff line change @@ -190,7 +190,8 @@ def decode_value(io)
190
190
191
191
# Serializes an NewArray value
192
192
#
193
- # @param value [Fixnum, Float] the value to serialize
193
+ # @param value [Fixnum] the value to serialize
194
+ # @param value [Float] the value to serialize
194
195
# @return [String] the serialized value
195
196
# @raise [RuntimeError] if serialization fails
196
197
def encode_value ( value )
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ def encode
63
63
64
64
# Adds an element to the references array
65
65
#
66
- # @param ref [Rex::Java::Serialization::Model::Element] the object to save as reference dst
66
+ # @param io [Rex::Java::Serialization::Model::Element] the object to save as reference dst
67
67
def add_reference ( ref )
68
68
self . references . push ( ref )
69
69
end
@@ -120,4 +120,4 @@ def decode_version(io)
120
120
end
121
121
end
122
122
end
123
- end
123
+ end
You can’t perform that action at this time.
0 commit comments