Fix RMI specs
parent
dd6ecefe39
commit
2d8782d711
|
@ -22,13 +22,27 @@ describe Msf::Java::Rmi::Client::Streams do
|
|||
end
|
||||
let(:opts_header) { "JRMI\x00\x01\x4d" }
|
||||
|
||||
let(:default_call) { "\x50\xac\xed\x00\x05" }
|
||||
let(:default_call) do
|
||||
"\x50\xac\xed\x00\x05\x77\x22\x00\x00\x00\x00\x00\x00\x00\x00\x00" +
|
||||
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff" +
|
||||
"\xff\x00\x00\x00\x00\x00\x00\x00\x00"
|
||||
end
|
||||
let(:call_opts) do
|
||||
{
|
||||
:message_id => Rex::Proto::Rmi::Model::PING_MESSAGE
|
||||
message_id: Rex::Proto::Rmi::Model::CALL_MESSAGE,
|
||||
object_number: 2,
|
||||
uid_number: 0,
|
||||
uid_time: 0,
|
||||
uid_count: 0,
|
||||
operation: 0,
|
||||
hash: 0xf6b6898d8bf28643
|
||||
}
|
||||
end
|
||||
let(:opts_call) { "\x52\xac\xed\x00\x05" }
|
||||
let(:opts_call) do
|
||||
"\x50\xac\xed\x00\x05\x77\x22\x00\x00\x00\x00\x00\x00\x00\x02\x00" +
|
||||
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" +
|
||||
"\x00\xf6\xb6\x89\x8d\x8b\xf2\x86\x43"
|
||||
end
|
||||
|
||||
let(:default_dgc_ack) { "\x54\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" }
|
||||
let(:dgc_ack_opts) do
|
||||
|
|
|
@ -59,7 +59,7 @@ describe Msf::Java::Rmi::Client do
|
|||
|
||||
describe "#send_call" do
|
||||
it "returns the number of bytes sent" do
|
||||
expect(mod.send_call(sock: io)).to eq(5)
|
||||
expect(mod.send_call(sock: io)).to eq(41)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue