Fix a typo and rspec for payload generator
parent
c0c9389b33
commit
4e55724f3f
2
msfvenom
2
msfvenom
|
@ -351,7 +351,7 @@ if generator_opts[:list_options]
|
|||
$stderr.puts "Advanced options for #{payload_mod.fullname}:\n\n"
|
||||
$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, ' ')
|
||||
exit(0)
|
||||
end
|
||||
|
|
|
@ -1056,7 +1056,7 @@ RSpec.describe Msf::PayloadGenerator 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)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue