test: chooses x86/call4_dword_xor => x86/xor_dynamic
parent
16f2cd6910
commit
7516be4147
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue