test: chooses x86/call4_dword_xor => x86/xor_dynamic

GSoC/Meterpreter_Web_Console
phra 2018-09-01 03:19:03 +02:00
parent 16f2cd6910
commit 7516be4147
No known key found for this signature in database
GPG Key ID: 91FF93D1B85D76B5
1 changed files with 2 additions and 9 deletions

View File

@ -133,8 +133,8 @@ RSpec.describe Msf::EncodedPayload do
context 'with bad characters: "\\xD9\\x00"' do
let(:badchars) { "\xD9\x00".force_encoding('binary') }
specify 'chooses x86/call4_dword_xor' do
expect(encoded_payload.encoder.refname).to eq("x86/call4_dword_xor")
specify 'chooses x86/xor_dynamic' do
expect(encoded_payload.encoder.refname).to eq("x86/xor_dynamic")
end
specify do
@ -144,13 +144,6 @@ RSpec.describe Msf::EncodedPayload do
end
context 'with bad characters: "\\x00\\x0a\\x0d"' do
let(:badchars) { "\x00\x0a\x0d".force_encoding('binary') }
let(:ancestor_reference_names) {
%w{singles/linux/x86/meterpreter_reverse_tcp}
}
let(:reference_name) {
'linux/x86/meterpreter_reverse_tcp'
}
specify 'chooses x86/xor_dynamic' do
expect(encoded_payload.encoder.refname).to eq("x86/xor_dynamic")