Update rex code and specs
parent
1f0b986bf1
commit
3946b95bc3
|
@ -10,7 +10,7 @@ module Rex
|
|||
MULTIPLEX_PROTOCOL = 0x4d
|
||||
CALL_MESSAGE = 0x50
|
||||
PING_MESSAGE = 0x52
|
||||
DBG_ACK_MESSAGE = 0x54
|
||||
DGC_ACK_MESSAGE = 0x54
|
||||
PROTOCOL_ACK = 0x4e
|
||||
PROTOCOL_NOT_SUPPORTED = 0x4f
|
||||
RETURN_DATA = 0x51
|
||||
|
@ -26,6 +26,6 @@ require 'rex/proto/rmi/model/protocol_ack'
|
|||
require 'rex/proto/rmi/model/continuation'
|
||||
require 'rex/proto/rmi/model/call'
|
||||
require 'rex/proto/rmi/model/return_data'
|
||||
require 'rex/proto/rmi/model/dbg_ack'
|
||||
require 'rex/proto/rmi/model/dgc_ack'
|
||||
require 'rex/proto/rmi/model/ping'
|
||||
require 'rex/proto/rmi/model/ping_ack'
|
|
@ -7,7 +7,7 @@ module Rex
|
|||
# This class provides a representation of an RMI DbgACK stream. It is an acknowledgement
|
||||
# directed to a server's distributed garbage collector that indicates that remote objects
|
||||
# in a return value from a server have been received by the client.
|
||||
class DbgAck < Element
|
||||
class DgcAck < Element
|
||||
|
||||
# @!attribute stream_id
|
||||
# @return [Fixnum] the input stream id
|
||||
|
|
|
@ -4,7 +4,7 @@ require 'spec_helper'
|
|||
require 'stringio'
|
||||
require 'rex/proto/rmi'
|
||||
|
||||
describe Rex::Proto::Rmi::Model::DbgAck do
|
||||
describe Rex::Proto::Rmi::Model::DgcAck do
|
||||
|
||||
subject(:dbg_ack) do
|
||||
described_class.new
|
||||
|
@ -17,13 +17,13 @@ describe Rex::Proto::Rmi::Model::DbgAck do
|
|||
let(:sample_io) { StringIO.new(sample) }
|
||||
|
||||
describe "#decode" do
|
||||
it "returns the Rex::Proto::Rmi::Model::DbgAck decoded" do
|
||||
it "returns the Rex::Proto::Rmi::Model::DgcAck decoded" do
|
||||
expect(dbg_ack.decode(sample_io)).to eq(dbg_ack)
|
||||
end
|
||||
|
||||
it "decodes stream_id correctly" do
|
||||
dbg_ack.decode(sample_io)
|
||||
expect(dbg_ack.stream_id).to eq(Rex::Proto::Rmi::Model::DBG_ACK_MESSAGE)
|
||||
expect(dbg_ack.stream_id).to eq(Rex::Proto::Rmi::Model::DGC_ACK_MESSAGE)
|
||||
end
|
||||
|
||||
it "decodes address correctly" do
|
||||
|
@ -34,7 +34,7 @@ describe Rex::Proto::Rmi::Model::DbgAck do
|
|||
|
||||
describe "#encode" do
|
||||
it "encodes the DbgAck correctly" do
|
||||
dbg_ack.stream_id = Rex::Proto::Rmi::Model::DBG_ACK_MESSAGE
|
||||
dbg_ack.stream_id = Rex::Proto::Rmi::Model::DGC_ACK_MESSAGE
|
||||
dbg_ack.unique_identifier = "\xd2\x4f\xdf\x47\x00\x00\x01\x49\xb5\xe4\x92\x78\x80\x17"
|
||||
|
||||
expect(dbg_ack.encode).to eq(sample)
|
||||
|
|
Loading…
Reference in New Issue