Fix a typo and rspec for payload generator

GSoC/Meterpreter_Web_Console
Wei Chen 2018-04-12 14:10:26 -05:00
parent c0c9389b33
commit 4e55724f3f
2 changed files with 2 additions and 2 deletions

View File

@ -351,7 +351,7 @@ if generator_opts[:list_options]
$stderr.puts "Advanced options for #{payload_mod.fullname}:\n\n" $stderr.puts "Advanced options for #{payload_mod.fullname}:\n\n"
$stdout.puts ::Msf::Serializer::ReadableText.dump_advanced_options(payload_mod, ' ') $stdout.puts ::Msf::Serializer::ReadableText.dump_advanced_options(payload_mod, ' ')
$stderr.puts "encrypt options for #{payload_mod.fullname}:\n\n" $stderr.puts "Encryption options for #{payload_mod.fullname}:\n\n"
$stdout.puts ::Msf::Serializer::ReadableText.dump_encrypt_options(payload_mod, ' ') $stdout.puts ::Msf::Serializer::ReadableText.dump_encrypt_options(payload_mod, ' ')
exit(0) exit(0)
end end

View File

@ -1056,7 +1056,7 @@ RSpec.describe Msf::PayloadGenerator do
} }
} }
it 'applies the appropriate transform format' do it 'applies the appropriate transform format' do
expect(::Msf::Simple::Buffer).to receive(:transform).with(shellcode, 'c', 'buf') expect(::Msf::Simple::Buffer).to receive(:transform).with(shellcode, 'c', 'buf'. {})
payload_generator.format_payload(shellcode) payload_generator.format_payload(shellcode)
end end
end end