Fix tests after arch refactor

bug/bundler_fix
OJ 2016-11-05 05:15:57 +10:00
parent 50c2ed8509
commit abe46024de
No known key found for this signature in database
GPG Key ID: D5DC61FB93260597
2 changed files with 3 additions and 3 deletions

View File

@ -165,7 +165,7 @@ RSpec.describe Msf::Exploit::Powershell do
context 'when x64 payload' do
it 'should generate code' do
code = subject.run_hidden_psh(payload, 'x86_64', encoded)
code = subject.run_hidden_psh(payload, 'x64', encoded)
expect(code.include?('sysnative')).to be_truthy
end
end

View File

@ -642,7 +642,7 @@ RSpec.describe Msf::PayloadGenerator do
let(:generator_opts) {
{
add_code: File.join(FILE_FIXTURES_PATH, "nop_shellcode.bin"),
arch: 'x86_64',
arch: 'x64',
badchars: "\x20\x0D\x0A",
encoder: 'x86/shikata_ga_nai',
datastore: { 'LHOST' => '192.168.172.1', 'LPORT' => '8443' } ,
@ -759,7 +759,7 @@ RSpec.describe Msf::PayloadGenerator do
let(:generator_opts) {
{
add_code: false,
arch: 'x86_64',
arch: 'x64',
badchars: '',
encoder: 'x86/shikata_ga_nai',
datastore: { 'LHOST' => '192.168.172.1', 'LPORT' => '8443' } ,